pastorizah 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 pbeckingham (Parson) on May 21, 2004 at 18:25 UTC |