| Subject: | Re: rand() |
|---|---|
| From: | peng.kyo@xxxxxxxxx (Peng Kyo) |
| Date: | Mon, 28 Jul 2008 23:06:56 +0800 |
| Newsgroups: | perl.beginners |
On Mon, Jul 28, 2008 at 10:54 PM, Bobby <cybercruiserz@xxxxxxxxx> wrote: > 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. > You may need srand before the rand function. -- Regards, Jeff. - Peng.Kyo@xxxxxxxxx |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | rand(), Bobby |
|---|---|
| Next by Date: | Re: rand(), Bobby |
| Previous by Thread: | rand(), Bobby |
| Next by Thread: | Re: rand(), Bobby |
| Indexes: | [Date] [Thread] [Top] [All Lists] |