Patch: Random number generation
Brandy is an interpreter for BBC Basic
Brought to you by:
dave_daniels
This patch corrects the random number generator, in that previously RND(x) where x > 1 was returning a value 0 <= n <= x-1. This makes it return a value 1 <= n <= x (as per the spec).
It also updates the random number seed to the clock, that way the PRNG doesn't follow the same sequence every time Brandy is started.
Better version of the patch.