...

View Full Version : Random Number Generator: No Similar numbers



Lococard
02-20-2007, 12:06 PM
Hey.

I want to create 10 random numbers, but none of them can be the same.

Pretty much like a cross lotto system where it chooses 10 random numbers from a pool of 1-40, so therefore none are the same.

I'm not to sure how to code my code to check if the numbers are the same, and then reissue a number for that array etc.


Any help. thanks

Brandoe85
02-20-2007, 03:54 PM
This explains the logic:
http://forums.asp.net/thread/1461944.aspx

Good luck;

Lococard
02-21-2007, 09:00 AM
Here, finally got it working.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum