for (1..$a) { my $foo = rand @thumbs; my $randomelement = $thumbs[$foo]; my $url = "picture_directory/$randomelement"; print qq(<img src="$url">$url<br>); splice(@thumbs, $foo, 1); }
In reply to (ar0n) Re: remove a random variable from an array
by ar0n
in thread remove a random variable from an array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |