in reply to Is there a better way to generate unique set of random numbers ?

In case you want a oneliner to solve this, here I paste one that I came up with :)

$ perl -le '@a{map{int rand 1185}(1..10)}=();print for keys %a' 373 304 286 210 816 777 596 18 766 880

  • Comment on Re: Is there a better way to generate unique set of random numbers ?
  • Download Code