[Oberon] SystemV - Random Number

Paul Reed paulreed at paddedcell.com
Sun Mar 24 11:06:06 CET 2019

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!

More information about the Oberon mailing list