in reply to Re: Pulling random elements from hash
in thread Pulling random elements from hash
Of course you can just write$array[int(rand(scalar(@array)))];
which will do exactly the same thing and is a bit less distracting to read.$array[rand @array];
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re^2: Pulling random elements from hash
by sgifford (Prior) on Jun 22, 2003 at 02:15 UTC | |
by merlyn (Sage) on Jun 22, 2003 at 02:45 UTC |