[NTG-context] Consistent random number generation

Norbert Melzer 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
03:01 Uhr:

> 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?
>
> Alan
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 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...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160406/75f63309/attachment.html>


More information about the ntg-context mailing list