Skip to content

Commit 497c66c

Browse files
authored
Merge pull request #2294 from corob-msft/cr-1534
Remove outdated note about non-conformance in generate_canonical
2 parents 7a569bb + e5a6a70 commit 497c66c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/standard-library/random-functions.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "<random> functions"
3-
ms.date: "11/04/2016"
3+
ms.date: "09/04/2019"
44
f1_keywords: ["random/std::generate_canonical"]
55
ms.assetid: 2ac9ec59-619b-4b85-a425-f729277c1bc8
66
helpviewer_keywords: ["std::generate_canonical"]
@@ -11,9 +11,6 @@ helpviewer_keywords: ["std::generate_canonical"]
1111

1212
Returns a floating-point value from a random sequence.
1313

14-
> [!NOTE]
15-
> The ISO C++ Standard states that this function should return values in the range [ `0`, `1`). Visual Studio is not yet compliant with this constraint. As a workaround to generate values in this range, use [uniform_real_distribution](../standard-library/uniform-real-distribution-class.md).
16-
1714
```cpp
1815
template <class RealType, size_t Bits, class Generator>
1916
RealType generate_canonical(Generator& Gen);
@@ -25,10 +22,13 @@ RealType generate_canonical(Generator& Gen);
2522
The floating point integral type. For possible types, see [\<random>](../standard-library/random.md).
2623
2724
*Bits*\
28-
The random number generator.
25+
The number of bits of randomness to use.
26+
27+
*Generator*\
28+
A random number generator class.
2929
3030
*Gen*\
31-
The random number generator.
31+
A reference to an instance of a random number generator of type *Generator*.
3232
3333
### Remarks
3434

0 commit comments

Comments
 (0)