__gnu_parallel::random_number(3) | Library Functions Manual | __gnu_parallel::random_number(3) |
NAME¶
__gnu_parallel::random_number -
Random number generator, based on the Mersenne twister.
SYNOPSIS¶
Public Member Functions¶
unsigned long genrand_bits (int bits)
uint32 operator() (uint64 local_supremum)
uint32 operator() ()
random_number (uint32 seed, uint64
supremum=0x100000000ULL)
random_number ()
Detailed Description¶
Random number generator, based on the Mersenne twister.
Definition at line 41 of file random_number.h.
Constructor & Destructor Documentation¶
__gnu_parallel::random_number::random_number () [inline]¶
Default constructor. Seed with 0.
Definition at line 73 of file random_number.h.
__gnu_parallel::random_number::random_number (uint32 seed, uint64 supremum = 0x100000000ULL) [inline]¶
Constructor. Parameters:
supremum Generate integer random numbers in the interval [0,supremum).
Definition at line 84 of file random_number.h.
Member Function Documentation¶
unsigned long __gnu_parallel::random_number::genrand_bits (int bits) [inline]¶
Generate a number of random bits, run-time parameter. Parameters:
Definition at line 108 of file random_number.h.
uint32 __gnu_parallel::random_number::operator() (uint64 local_supremum) [inline]¶
Generate unsigned random 32-bit integer in the interval [0,local_supremum).
Definition at line 99 of file random_number.h.
uint32 __gnu_parallel::random_number::operator() () [inline]¶
Generate unsigned random 32-bit integer.
Definition at line 93 of file random_number.h.
Author¶
Generated automatically by Doxygen for libstdc++ from the source code.
19 Jun 2018 | libstdc++ |