Create a PcgRandomGenerator seeded with the specified initState and streamSelector.
Declared in <bdlb_pcgrandomgenerator.h>
PcgRandomGenerator(
uint64_t initState,
uint64_t streamSelector);
Create a PcgRandomGenerator seeded with the specified initState and streamSelector. The highest-order bit of streamSelector is ignored. Note that instances created with identical seeds produce the same sequence from subsequent generate() calls.
| Name | Description |
|---|---|
| initState | initial state for the generator |
| streamSelector | stream selector for the generator sequence |