24 Mar
2019
24 Mar
'19
11:06 a.m.
With an FPGA being available, and perhaps depending on the application, another option would be to implement a feedback shift register. But as Knuth said, "Random numbers should not be generated with a method chosen at random".
I.s.o. 16807 (=7^5) it's recommended to use 48271 (prime)
I'd be interested to know exactly why, without reading all the literature ;-)
https://github.com/hansklav/Oberon-07/blob/master/Random.Mod
Nice. Thanks! Paul