[#BloombergLP-bdlb-PcgRandomGenerator-2constructor-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PcgRandomGenerator.adoc[PcgRandomGenerator]::PcgRandomGenerator :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlb_pcgrandomgenerator.h>` Create a `PcgRandomGenerator` object and seed it with the optionally specified `initState` and `streamSelector`. If `initState` and `streamSelector` are not specified, 0 is used for both. The highest‐order bit of `streamSelector` is ignored. Note that invoking different instances created with the identical `initState` and `streamSelector` will result in the same sequence of random numbers from subsequent invocations of `generate()`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/PcgRandomGenerator/2constructor-04.adoc[PcgRandomGenerator](); ---- [.small]#xref:BloombergLP/bdlb/PcgRandomGenerator/2constructor-04.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/PcgRandomGenerator/2constructor-0b.adoc[PcgRandomGenerator]( uint64_t initState, uint64_t streamSelector); ---- [.small]#xref:BloombergLP/bdlb/PcgRandomGenerator/2constructor-0b.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#