Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to generate distinct random numbers?

by johnnywang (Priest)
on Sep 05, 2004 at 06:43 UTC ( [id://388579] : note . print w/replies, xml ) Need Help??


in reply to How to generate distinct random numbers?

Thank you all, actually I was asking for the simple question of getting some distinct random numbers, I guess the range throw you guys off, into shuffles. I somehow didn't feel good about: "keep trying until one gets enough distinct ones", but it is enough for my current purpose. Thanks again.