perl -e 'for (0..100){$randhash{int (rand() * 100)} += 1}; print join +qq|\n|,sort {$a<=>$b} keys %randhash;'
Check elements that have > 1 in the value and recompute until you find a key that does fails exists.
Celebrate Intellectual Diversity
In reply to Re: Check randomly generated numbers have not been used before
by InfiniteSilence
in thread Check randomly generated numbers have not been used before
by R3search3R
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |