pymor.tools.random¶
Module Contents¶
Functions¶
Returns a |
|
Returns the default |
Attributes¶
- pymor.tools.random.get_random_state(random_state=None, seed=None)[source]¶
Returns a
NumPyRandomState.Parameters
- random_state
If specified, this state is returned.
- seed
If specified, the seed to initialize a new random state.
Returns
Either the provided, a newly created or the default
RandomStateobject.
- pymor.tools.random.default_random_state(seed=42)[source]¶
Returns the default
NumPyRandomState.Parameters
- seed
Seed to use for initializing the random state.
Returns
The default
RandomStateobject.