lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> Btw., is there some decent, "resumable"- RNG for Lua around?
> What I want is essentially a "getrandomseed", which returns the current seed
> and can thus be used for resuming the generation of random numbers later,
> with perfectly predictable output.

My lrandom does not provide getrandomseed but it does provide a clone method
that can be used for the same purpose: clone the generator, use it at will,
then use the clone.