mlrl.common.cython.rng module

@author: Michael Rapp (michael.rapp.ml@gmail.com)

class mlrl.common.cython.rng.RNGConfig

Bases: object

Allows to configure random number generators.

get_random_state() int

Returns the seed that is used by random number generators.

Returns:

The seed that is used

set_random_state(random_state: int) RNGConfig

Sets the seed that should be used by random number generators.

Parameters:

random_state – The seed that should be used. Must be at least 0

Returns:

An RNGConfig that allows further configuration of the random number generators