in reply to Re: How to generate different random numbers?
in thread How to generate distinct random numbers?
As for shuffle vs. rand, "use Benchmark". :-) See if there's a predictable threshold where one overtakes the other.
Update: Is the ratio between $num and $range significant when determining whether a shuffle or rand is better to use? It would seems that a very small $num:$range ratio would benefit from rand, where shuffle-ing is better as $num:$range -> 1.
Or am I speaking from a non-standard orifice?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to generate different random numbers?
by ranjan_jajodia (Monk) on Sep 05, 2004 at 06:26 UTC |