A randomize statement at the beginning of the program will change the seed with each run. The rnd function will return the same sequence of random numbers each time the program is run if the random number generator is not reseeded.
randomize for i = 1 to 3 print rnd(i); next iwould prompt
Random Number Seed (-32768 to 32767)?The value with which you respond will determine the particular sequence of random numbers produced by subsequent rnd function calls.
from The Basmark QuickBASIC Programmer’s Manual by Lawrence Leinweber