How would create a random number generator between the limits of 1 and 20 for a multiple choice test??
Printable View
How would create a random number generator between the limits of 1 and 20 for a multiple choice test??
Randomize Timer 'Tell the clock to randomize
x = int(rnd * 20) + 1 'now pick any number within 1 and 20
'Do not remove the "+1" part!!
you can check Rnd() from the vb help file it includes a formula to get a random number with a variable lower bound and upperbound.