-
Hello,
I am making a program that involves a random number selection. When you Press a cmdButton, it would randomly select a number in between 0-9. Any suggestions on a short code?
------------------
- M e n S h e n
Canabatech Programmer
Homepage http://influx.virtualave.net
Email [email protected]
ICQ 17527422
-
Const nLowerBound = 0
Const nUpperBound = 9
Randomize
MsgBox Int((nUpperBound - nLowerBound + 1) * Rnd + nLowerBound)
------------------
Marty
COGITO EGGO SUM
I think; therefore I am a waffle.
-
I would do it :
RandomNumber= CInt(rnd()*10)