Showing content from https://cplusplus.com/reference/random/default_random_engine/ below:
class
<random>
std::default_random_engine
Default random engine
This is a random number engine class that generates pseudo-random numbers.
It is the library implemention's selection of a generator that provides at least acceptable engine behavior for relatively casual, inexpert, and/or lightweight use.
Member types The following alias is a member type of default_random_engine:
member type definition notes result_type An unsigned integer type The type of the numbers generated.
Member functions In the case that this is a linear_congruential_engine type, it has the following member functions:
-
(constructor)
-
Construct linear congruential engine (public member function)
-
min
-
Minimum value (public static member function)
-
max
-
Maximum value (public static member function)
-
seed
-
Seed engine (public member function)
-
operator()
-
Generate random number (public member function)
-
discard
-
Advance internal state (public member function)
Non-member functions
-
operator<<
-
Insert into output stream (function template)
-
operator>>
-
Extract from input stream (function template)
-
relational operators
-
Relational operators (function template)
See also
-
minstd_rand0
-
Minimal Standard minstd_rand0 generator (class)
-
mt19937
-
Mersenne Twister 19937 generator (class)
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4