[Coco] Random number generator in B09

Willard Goosey goosey at virgo.sdc.org
Thu Jan 2 22:38:38 EST 2014


Doesn't look like it. The BASIC09 Reference manual says:
RND(number)
[...]
  If number =0 then range = 0 to 1
  If number>0 then range = 0 to number
[...]
  ....are not truly random but occur in a predictable sequence. Specifying a number less than 0 begins the sequence over.

Endquote

Bleah. 

Either do (math(timer )) calls or write a better RND() as a subroutine module.

Willard
Sent from Samsung tablet


More information about the Coco mailing list