spiketools.utils.random.set_random_state¶
- spiketools.utils.random.set_random_state(seed_value=0)[source]¶
Set the random state in a RandomState object.
- Parameters:
- seed_valueint, optional
Value to set the random seed as.
- Returns:
- RandomState
An initialized numpy RandomState.
Notes
This sets the random state of a new RandomState object, independent of the global numpy state.