nimble.random¶
Module for random operations with Nimble.
Nimble is able to guarantee reproduciblility through pythonRandom
and numpyRandom
. These are, respectively, instances of Python and
Numpy’s randomness objects and are always instantiated using the same
seed value on import. Nimble always uses these instances internally to
maintain the guarantee of reproduciblility. Users wanting to maintain
reproduciblility must also use these instances for random operations.
The random.Random instance used within Nimble. |
|
The np.random.RandomState instance used within Nimble. |
|
|
Context manager to operate outside of the current random state. |
|
Generate a data object with random contents. |
Generate a random integer usable as a python or numpy random seed. |
|
|
Set the seeds on all sources of randomness in nimble. |