|
STLdoc
STLdocumentation
|
Random number generator, based on the Mersenne twister. More...
#include <parallel/random_number.h>
Public Member Functions | |
| _RandomNumber () | |
| Default constructor. Seed with 0. More... | |
| _RandomNumber (uint32_t __seed, uint64_t _M_supremum=0x100000000ULL) | |
| Constructor. More... | |
| uint32_t | operator() () |
| Generate unsigned random 32-bit integer. More... | |
| uint32_t | operator() (uint64_t local_supremum) |
Generate unsigned random 32-bit integer in the interval [0,local_supremum). More... | |
| unsigned long | __genrand_bits (int __bits) |
| Generate a number of random bits, run-time parameter. More... | |
Static Private Member Functions | |
| static uint32_t | __scale_down (uint64_t __x, uint64_t _M_supremum, double) |
Private Attributes | |
| std::tr1::mt19937 | _M_mt |
| uint64_t | _M_supremum |
| uint64_t | _M_rand_sup |
| double | _M_supremum_reciprocal |
| double | _M_rand_sup_reciprocal |
| uint64_t | __cache |
| int | __bits_left |
Random number generator, based on the Mersenne twister.
|
inline |
Default constructor. Seed with 0.
|
inline |
Constructor.
| __seed | Random __seed. |
| _M_supremum | Generate integer random numbers in the interval [0,_M_supremum). |
|
inline |
Generate a number of random bits, run-time parameter.
| __bits | Number of bits to generate. |
|
inlinestaticprivate |
|
inline |
Generate unsigned random 32-bit integer.
|
inline |
Generate unsigned random 32-bit integer in the interval [0,local_supremum).
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6