PDA

Click to See Complete Forum and Search --> : How can I make vb select numbers from like 1 to 15?


Pikachu_902
Dec 8th, 1999, 06:47 AM
How can I make vb select numbers from like 1 to 15? When I Put 1-15 it thinks I am Substracting

jritchie
Dec 8th, 1999, 07:06 AM
I am not exactly sure what you want here. Do you want randomisation or selection of say items from a list based on the index????

MartinLiss
Dec 8th, 1999, 07:06 AM
You don't really describe what you want to do, but the following will producr random numbers between 1 and 15.
Dim intRandom as Integer
Randomize
intRandom = Int((15 - 1 + 1) * Rnd + 1)


------------------
Marty

[This message has been edited by MartinLiss (edited 12-08-1999).]