Hello.
> 1 CLEAR
> 5 CLS : PRINT "Random Number test"
> 10 FOR x = 1 TO 10
> 20 RANDOMIZE TIMER
> 30 i = INT(RND * 35) + 1
> 40 PRINT i
> 45 NEXT x
>
> Blassic users should change Line 20 to read:
>
> 20 RANDOMIZE
That is not the way randomize must be used. You must call randomize
once, at the beginnig of the program, and then use only RND.
RANDMOIZE initializes the seudo-random number generator, if you use
the same number you obtain the same sequence, and if you call timer
two
times in a short space of time it can give the same number. Using
RANDOMIZE without parameter in Blassic is the same thing, it uses
the computer clock internally.
Swapping the contents of lines 20 and 30 will give a more accurate
test.
Regards.