Hi all, How do I use the rand function to print out more than one random number for an array? In the example script below i have an array @nums with a list of numbers; how do i print out more than one random numbers from that list (@nums)? Thanks. #!/usr/bin/perl use strict; use warnings; my @nums = ("10000","10002","10004","10005","10006","140000","1500000"); my $randnum = $nums[rand(@nums)]; print "$randnum \n";
- rand() Bobby
- Re: rand() peng . kyo
- Re: rand() Bobby
- Re: rand() peng . kyo
- Re: rand() Bobby
- Re: rand() Bobby
- Re: rand() Aruna Goke
- Re: rand() Mr. Shawn H. Corey
- Re: rand() Bobby
- Re: rand() Mr. Shawn H. Corey
- Re: rand() Rob Dixon