[#BloombergLP-bdlb-PcgRandomGenerator-2constructor-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/PcgRandomGenerator.adoc[PcgRandomGenerator]::PcgRandomGenerator
:relfileprefix: ../../../
:mrdocs:

Create a `PcgRandomGenerator` seeded with the specified `initState` and `streamSelector`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;pcgrandomgenerator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
PcgRandomGenerator(
    uint64&lowbar;t initState,
    uint64&lowbar;t streamSelector);
----

== Description

Create a `PcgRandomGenerator` seeded with the specified `initState` and `streamSelector`&period; The highest&hyphen;order bit of `streamSelector` is ignored&period; Note that instances created with identical seeds produce the same sequence from subsequent `generate()` calls&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *initState*
| initial state for the generator
| *streamSelector*
| stream selector for the generator sequence
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
