fork

open override fun fork(): RandomGenerator

Create a new generator which is independent from current generator (operations on new generator do not affect this one and vise versa). The statistical properties of new generator should be the same as for this one. For pseudo-random generator, the fork is keeping the same sequence of numbers for given call order for each run.

The thread safety of this operation is not guaranteed since it could affect the state of the generator.