lua-users home
lua-l archive

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

2010/1/17 Rob Kendrick <>
> Wolfgang Pupp <> wrote:
> > What I want is essentially a "getrandomseed", which can
> > be used for resuming the generation of random numbers later,
> > with perfectly predictable output.
> You can do this with a cryptographic hash.  For each "number" you want
> out, hash together your seed and an index. [...]

Thanks for the quick reply! This is exactly what i need, and even better than
what I had in mind :)

Considering how much i thought about this, I ought to ask such questions
more often :)