Documentation ¶
Overview ¶
Package pcg provides an implementation of the PCG XSL RR 128/64 pseudo random number generator.
Full details can be found at the PCG-Random website (http://www.pcg-random.org/). This version of the code provides a single member of the PCG family, PCG XSL RR 128/64 (LCG).
Use of this algorithm is governed by a MIT-style license that can be found in the LICENSE-pcg file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rng ¶
type Rng struct { LO uint64 // low 64 bits of 128 bits state HI uint64 // high 64 bits of 128 bits state }
Rng encapsulates a PCG XSL RR 128/64 (LCG) PRNG.
This is a permuted congruential generator as defined in
PCG: A Family of Simple Fast Space-Efficient Statistically Good Algorithms for Random Number Generation Melissa E. O'Neill, Harvey Mudd College https://www.cs.hmc.edu/tr/hmc-cs-2014-0905.pdf
Click to show internal directories.
Click to hide internal directories.