[thelist] HELP ASP gurus -- random numbers is hard

aardvark roselli at earthlink.net
Tue Dec 5 12:26:50 CST 2000


> From: Edd Partee <edd at vilocity.com>
> 
> But seriously. All I want to do is put 10 unique random numbers into an
> array. I can get the array and I can get 10 numbers, but they're not all
> unique enough. I've tried some incredibly complicated nested loops, but
> I'm just generating errors with that. Please give a little if you can.

what's the range you're starting from?

for instance, if i want to choose randomly from 10 numbers, that's 
one thing... but if i want to create 10 random numbers, then i would 
use a very large range from which to draw those numbers...

got some sample code?




More information about the thelist mailing list