[thelist] HELP ASP gurus -- random numbers is hard
Edd Partee
edd at vilocity.com
Tue Dec 5 12:37:59 CST 2000
Sorry about the confusion. What I want to do is CHOOSE randomly from a
group of numbers (0 - 19). This is the code I'm using (mostly from the
WROX Beginning ASP book):
<snip>
Const LNG_UPPER_BOUND = 19
Const LNG_LOWER_BOUND = 0
Dim intValue
Dim lngCounter
Randomize
intValue = Int( _
(LNG_UPPER_BOUND - _
LNG_LOWER_BOUND + 1) * _
Rnd + LNG_LOWER_BOUND)
</snip)
aardvark wrote:
> what's the range you're starting from?
>
> for instance, if i want to choose randomly from 10 numbers, that's
> one thing...
More information about the thelist
mailing list