rng#

Tumult Core’s random number generator.

Functions#

prng()

Getter for prng.

prng()#

Getter for prng.

Return type:

numpy.random.Generator

Classes#

RNGWrapper

Mimics Python random interface for discrete Gaussian sampling.

class RNGWrapper(rng)#

Mimics Python random interface for discrete Gaussian sampling.

Parameters:

rng (numpy.random.Generator)

__init__(rng)#

Constructor.

Parameters:

rng (Generator) – NumPy random generator.

randrange(stop)#

Returns a random integer between 0 (inclusive) and stop (exclusive).

Parameters:

stop (int) – upper bound for random integer range.

Return type:

int