newbio has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks, I want to select 5 integers randomly from integers in the range 1 to 1 +5. Assume these integers are uniformly distributed. A number once pic +ked should not be picked again (i.e. selection without replacement). +I tried this using function "random_uniform_integer()", however this +function picks one number more than once which I do not want. Please let me know what is the appropriate way of doing this. Thanks a lot.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: random number generation.
by ikegami (Patriarch) on Sep 11, 2007 at 17:40 UTC | |
by newbio (Beadle) on Sep 11, 2007 at 18:15 UTC | |
by ikegami (Patriarch) on Sep 11, 2007 at 18:20 UTC | |
by newbio (Beadle) on Sep 11, 2007 at 18:52 UTC | |
by ikegami (Patriarch) on Sep 11, 2007 at 18:58 UTC | |
|
Re: random number generation.
by FunkyMonk (Bishop) on Sep 11, 2007 at 17:42 UTC | |
|
Re: random number generation.
by derby (Abbot) on Sep 11, 2007 at 17:46 UTC | |
|
Re: random number generation.
by Roy Johnson (Monsignor) on Sep 11, 2007 at 19:33 UTC | |
|
Re: random number generation.
by injunjoel (Priest) on Sep 11, 2007 at 18:01 UTC |