Sujet : Re: KISS 64-bit pseudo-random number generator
De : mhx (at) *nospam* iae.nl (mhx)
Groupes : comp.lang.forthDate : 09. Sep 2024, 08:41:33
Autres entêtes
Organisation : novaBBS
Message-ID : <0d6fd7afead1708921d74f60970bcf62@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
On Mon, 9 Sep 2024 6:55:49 +0000, Lars Brinkhoff wrote:
[..]
I would like to recommend Marsaglia's newer and better xorshift family
of PRNGs, and preferably the further development by Sebastiano Vigna
called xoroshiro. The output (with suitable parameters) is very good*,
yet the implementation is very simple.
>
*But not cryptography grade.
Being "cryptography grade" is the point when you want to introduce
something new for a PRNG :--) Anyway, what does that disclaimer actually
mean? The simplest NCG-PRNG has only 3 or 4 standard words in it.
FORTH> locate RANDOM
File: d:\dfwforth/include/miscutil.frt
1317:
1320>> : RANDOM seed $107465 * $234567 + ( -- u )
1321: 9 ROL DUP TO seed ;
-marcel