How can I make vb select numbers from like 1 to 15? When I Put 1-15 it thinks I am Substracting
Printable View
How can I make vb select numbers from like 1 to 15? When I Put 1-15 it thinks I am Substracting
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????
You don't really describe what you want to do, but the following will producr random numbers between 1 and 15.Code:Dim intRandom as Integer
Randomize
intRandom = Int((15 - 1 + 1) * Rnd + 1)
------------------
Marty
[This message has been edited by MartinLiss (edited 12-08-1999).]