14.3. steps.API_2.rng

The rng module contains classes related to random number generation.

14.3.1. Detailed documentation


class RNG(algoStr='mt19937', buffSz=512, seed=1)[source]

Bases:

Random number generator class

Parameters
  • algoStr (str) – Algorithm used to generate random numbers (see below).

  • buffSz (int) – Pre-allocated buffer size

  • seed (int) – Seed for the random number generator

Available algorithms:
  • 'mt19937' (Mersenne Twister, based on the original mt19937.c)

  • 'r123'

Method and attributes are the same as in steps.API_1.rng.RNG.