nlcpy.random.RandomState.seed
- RandomState.seed(self, seed=None)
Reseeds a default bit generator(MT19937), which provide a stream of random bits.
Note
This is a convenience, legacy function. The best practice is to not reseed a BitGenerator, rather to recreate a new one. This method is here for legacy reasons. This example demonstrates best practice.
Examples
>>> import nlcpy as vp >>> rs = vp.random.RandomState(123456789) # Later, you want to restart the stream >>> rs.seed(987654321)