[NTG-context] Consistent random number generation
timmelzer at gmail.com
Wed Apr 6 13:24:53 CEST 2016
In programming usually a (non-crypto-safe) RNG returns the same sequence
everytime it is started with the same seed. Therefore, you often seed with
the current time if you do not want to have reproducable sequences and use
a specific seed when you want reproducable results across certain runs.
There are meany causes to want to have this deterministic “randomnes”:
* As mentioned in this thread: reproducable results across different
systems, OSs and architectures
* Certain kinds of games do transfer/save a base seed instead of the
randomly generated level to save bandwith/diskspace
There are more examples, but in the end, they all rely on reproducing the
sequence over multiple architectures to recreate something exactly the same
way it was before.
Alan BRASLAU <alan.braslau at cea.fr> schrieb am Mi., 6. Apr. 2016 um
> On Tue, 5 Apr 2016 17:43:53 -0400
> Aditya Mahajan <adityam at umich.edu> wrote:
> > Is it possible to generate consistent random numbers across multiple
> > operating systems.
> Then they are not random!
> Why not save your chosen "random" paths to files?
> If your question is of interest to others as well, please add an entry to
> the Wiki!
> maillist : ntg-context at ntg.nl /
> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ntg-context