tmp/tmpkcc64505/{from.md → to.md}
RENAMED
|
@@ -2,11 +2,11 @@
|
|
| 2 |
|
| 3 |
##### Class template `uniform_int_distribution` <a id="rand.dist.uni.int">[[rand.dist.uni.int]]</a>
|
| 4 |
|
| 5 |
A `uniform_int_distribution` random number distribution produces random
|
| 6 |
integers i, a ≤ i ≤ b, distributed according to the constant discrete
|
| 7 |
-
probability function
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
namespace std {
|
| 11 |
template<class IntType = int>
|
| 12 |
class uniform_int_distribution {
|
|
@@ -39,14 +39,16 @@ namespace std {
|
|
| 39 |
result_type max() const;
|
| 40 |
|
| 41 |
// inserters and extractors
|
| 42 |
template<class charT, class traits>
|
| 43 |
friend basic_ostream<charT, traits>&
|
| 44 |
-
operator<<(basic_ostream<charT, traits>& os,
|
|
|
|
| 45 |
template<class charT, class traits>
|
| 46 |
friend basic_istream<charT, traits>&
|
| 47 |
-
operator>>(basic_istream<charT, traits>& is,
|
|
|
|
| 48 |
};
|
| 49 |
}
|
| 50 |
```
|
| 51 |
|
| 52 |
``` cpp
|
|
@@ -74,11 +76,11 @@ constructed.
|
|
| 74 |
|
| 75 |
##### Class template `uniform_real_distribution` <a id="rand.dist.uni.real">[[rand.dist.uni.real]]</a>
|
| 76 |
|
| 77 |
A `uniform_real_distribution` random number distribution produces random
|
| 78 |
numbers x, a ≤ x < b, distributed according to the constant probability
|
| 79 |
-
density function
|
| 80 |
|
| 81 |
[*Note 1*: This implies that p(x | a,b) is undefined when
|
| 82 |
`a == b`. — *end note*]
|
| 83 |
|
| 84 |
``` cpp
|
|
|
|
| 2 |
|
| 3 |
##### Class template `uniform_int_distribution` <a id="rand.dist.uni.int">[[rand.dist.uni.int]]</a>
|
| 4 |
|
| 5 |
A `uniform_int_distribution` random number distribution produces random
|
| 6 |
integers i, a ≤ i ≤ b, distributed according to the constant discrete
|
| 7 |
+
probability function in .
|
| 8 |
|
| 9 |
``` cpp
|
| 10 |
namespace std {
|
| 11 |
template<class IntType = int>
|
| 12 |
class uniform_int_distribution {
|
|
|
|
| 39 |
result_type max() const;
|
| 40 |
|
| 41 |
// inserters and extractors
|
| 42 |
template<class charT, class traits>
|
| 43 |
friend basic_ostream<charT, traits>&
|
| 44 |
+
operator<<(basic_ostream<charT, traits>& os, // hosted
|
| 45 |
+
const uniform_int_distribution& x);
|
| 46 |
template<class charT, class traits>
|
| 47 |
friend basic_istream<charT, traits>&
|
| 48 |
+
operator>>(basic_istream<charT, traits>& is, // hosted
|
| 49 |
+
uniform_int_distribution& x);
|
| 50 |
};
|
| 51 |
}
|
| 52 |
```
|
| 53 |
|
| 54 |
``` cpp
|
|
|
|
| 76 |
|
| 77 |
##### Class template `uniform_real_distribution` <a id="rand.dist.uni.real">[[rand.dist.uni.real]]</a>
|
| 78 |
|
| 79 |
A `uniform_real_distribution` random number distribution produces random
|
| 80 |
numbers x, a ≤ x < b, distributed according to the constant probability
|
| 81 |
+
density function in .
|
| 82 |
|
| 83 |
[*Note 1*: This implies that p(x | a,b) is undefined when
|
| 84 |
`a == b`. — *end note*]
|
| 85 |
|
| 86 |
``` cpp
|