#include <bdlb_random.h>
This struct provides a namespace for a suite of functions used for random-number generation.
See bdlb_random
◆ generate15() [1/2]
| int bdlb::Random::generate15 |
( |
int * |
nextSeed, |
|
|
int |
seed |
|
) |
| |
|
inlinestatic |
Return a 15-bit random number in the range [ 0 .. 32,767 ] generated from the specified seed, and load into the specified nextSeed a value suitable for generating the next random number.
◆ generate15() [2/2]
| int bdlb::Random::generate15 |
( |
int * |
seed | ) |
|
|
inlinestatic |
Return a 15-bit random number in the range [ 0 .. 32,767 ] generated from the specified seed, and load into seed a value suitable for generating the next random number.
◆ generatePcg()
Return the next unsigned 32-bit random number generated from the specified PCG-based generator.
The documentation for this struct was generated from the following file: