Random number functions are provided in the libraries

LIB/rand_lib.bas


 
rand16_init Initialise the 16 bit random number generator
rand31_init Initialise the 31 bit random number generator
rand16 Generate a pseudo random number using the 16 bit random number generator
rand31 Generate a pseudo random number using the 31 bit random number generator