14.8.3. steps.API_1.rng
Namespace for random number generator classes.
- create(rng_name, bufsize)
_py_rng_create(str rng_name, uint bufsize)
Creates and returns a reference to a steps.rng.RNG random number generator object, which is specified by type and pre-allocates a buffer list with size of buffer_size.
Syntax:
create(type, buffer_size)
Arguments: string type int buffer_size
Return: steps.rng.RNG
- create_mt19937(bufsize)
_py_rng_create_mt19937(uint bufsize)
Creates and returns a reference to a steps.rng.RNG random number generator object, which is specified by type and pre-allocates a buffer list with size of buffer_size.
Syntax:
create_mt19937(buffer_size)
Arguments: int buffer_size
Return: steps.rng.RNG