Hello,how about this?
use strict;
my $maxLenth=16;
my @a = (0..99);
my @randList = map { $a[int rand @a] } 0..($maxLenth-1);
print "@randList\n";
Here $maxLenth is the list's length,@a is the source where the list members
coming from.
is there any shortest way to add a list of random numbers ?
for example :
11
1
250
39
100
....
,....
thanks
--
ibiokid
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>