View Full Version : Random Number Generator: No Similar numbers

02-20-2007, 11:06 AM

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

02-20-2007, 02:54 PM
This explains the logic:

Good luck;

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

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum