Hello,
I am trying to figure out if there is an easy way to do something.
I am picking SIX numbers from say 0-50 or whatever.
Here is how I am picking:
srand(time());
$num1 =(rand()%50);
$num2 =(rand()%50);
$num3 =(rand()%50);
$num4 =(rand()%50);
$num5 =(rand()%50);
$num6 =(rand()%50);
That works. My problem is, I want to make sure that none of the numbers are dupes.
So if it picked say 1 14 14 22 44 22
It would redraw the 3rd # as to not be a dupe.
any way to do this that is not super drawn out?