| Subject: | Re: rand() |
|---|---|
| From: | charley@xxxxxxxxxxxx (Chris Charley) |
| Date: | Wed, 30 Jul 2008 10:24:57 -0400 |
| Newsgroups: | perl.beginners |
From: ""Chris Charley"" From: "Bobby" Newsgroups: perl.beginners Subject: rand() 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. Just to clarify a possible misunderstanding. There will be no duplicates only if there are no duplicates in the original array. 'shuffle' doesn't filter out duplicates - it just shuffles the list. Chris |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Question about lwp-rget, Rob Dixon |
|---|---|
| Next by Date: | Re: rand(), Rob Dixon |
| Previous by Thread: | Re: rand(), Chris Charley |
| Next by Thread: | problem with module install about Shell::POSIX::Select, Jiancong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |