By: hobold (hobold.delete@this.vectorizer.org), March 25, 2022 2:34 pm
Room: Moderated Discussions
Adrian (a.delete@this.acm.org) on March 25, 2022 9:37 am wrote:
[...]
> However well-designed PRNGs do not introduce any global state.
There is a style of PRNG that is essentially stateless. For example Squirrel3:
https://maartene.github.io/blog/files/4550a51525c9c2a44d04ac24761e9f71-24.html
In its simplest form this is essentially a hash function that turns a given running index 0 .. N into a repeatable sequence of N+1 pseudo-random numbers. More sophisticated variants take an additional parameter as a seed or as an identifier of different streams of pseudorandom numbers.
Such generators can in theory(!) be non-repeating/aperiodic, because the input index has no inherent upper limit. But they are relatively new and not yet widely explored.
[...]
> However well-designed PRNGs do not introduce any global state.
There is a style of PRNG that is essentially stateless. For example Squirrel3:
https://maartene.github.io/blog/files/4550a51525c9c2a44d04ac24761e9f71-24.html
In its simplest form this is essentially a hash function that turns a given running index 0 .. N into a repeatable sequence of N+1 pseudo-random numbers. More sophisticated variants take an additional parameter as a seed or as an identifier of different streams of pseudorandom numbers.
Such generators can in theory(!) be non-repeating/aperiodic, because the input index has no inherent upper limit. But they are relatively new and not yet widely explored.