|go ahead... be a heretic|
Re^3: Non-Repetitive Random Numbersby LanX (Chancellor)
|on Apr 05, 2013 at 14:54 UTC||Need Help??|
Keys of a hash are always unique, in my code collisions of random numbers are simply ignored.
> That doesn't guarantee unique values.
maybe this is clearer:
updateone could argue that the order of hash -keys isn't random but that wasn't part of the question.
Otherwise thats a good occasion to use shuffle or pushing into an array (but this implies reseeding rand every time)
( addicted to the Perl Programming Language)