if not you might want to glance at 'perldoc -q shuffle' for other ways to do this.use strict; use warnings; use List::Util 'shuffle'; my @big = (qw(u n s o r t e d)); my @shuffle = (shuffle(@big))[0 .. $#big*.75]; print join "|",@shuffle;
-enlil
In reply to Re: Selecting random records from an array
by Enlil
in thread Selecting random records from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |