Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl # Generate 10 random numbers between 1 and 1000 for ($x=0;$x<10;$x++) { print int (rand(1000) + 1) ."\t"; if ($x%5==0) { print "\n"; } } END;
janitored by ybiC: Balanced <code> tags around codeblock
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array in ascending order
by duff (Parson) on May 21, 2004 at 18:03 UTC | |
by hardburn (Abbot) on May 21, 2004 at 18:15 UTC | |
by duff (Parson) on May 21, 2004 at 18:26 UTC | |
|
Re: array in ascending order
by pbeckingham (Parson) on May 21, 2004 at 18:27 UTC |