BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::Random Struct Reference

#include <bdlb_random.h>

Static Public Member Functions

static int generate15 (int *nextSeed, int seed)
 
static int generate15 (int *seed)
 
static bsl::uint32_t generatePcg (PcgRandomGenerator *generator)
 

Detailed Description

This struct provides a namespace for a suite of functions used for random-number generation.

Member Function Documentation

◆ 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()

bsl::uint32_t bdlb::Random::generatePcg ( PcgRandomGenerator generator)
inlinestatic

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: