First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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()