Ask Your Question

Revision history [back]

random seed

How to start using random() and stop the process and then recover the random generation from the point where it stopped?

Example

  set_random_seed(0)
  some cycle calling random()

later

  set_random_seed( ...where??... )
  more steps of some cycle calling random()