in reply to biased random number picking
use warnings; use strict; use List::Util qw(shuffle); for (1 .. 5) { my @nums = (shuffle(1 .. 100))[0 .. 1]; print "@nums\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: biased random number picking
by BillKSmith (Monsignor) on Jul 12, 2012 at 11:58 UTC | |
by toolic (Bishop) on Jul 12, 2012 at 12:49 UTC | |
by Anonymous Monk on Jul 12, 2012 at 12:16 UTC |