PDA

Click to See Complete Forum and Search --> : Random number generator


Dec 12th, 1999, 02:41 PM
How would create a random number generator between the limits of 1 and 20 for a multiple choice test??

cjwares
Dec 12th, 1999, 03:05 PM
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!!

Tonio169
Dec 12th, 1999, 03:42 PM
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.