[Oberon] Random numbers

Martin Bishop martinbishop at bellsouth.net
Thu Sep 25 03:50:08 MEST 2008


I have some simple code that does the Knuth shuffle on an array of
integers.  I use RandomNumbers.RND(n + 1) (n being the FOR loops
counter), however every time I run the resulting program, it gives me
the same "random" shuffle.  Even a recompile will still give me the same
shuffle.  Is this a property of the random number generator? Do I have
to seed it myself with the time or something?


More information about the Oberon mailing list