Just another Perl shrine | |
PerlMonks |
Re: Re: random elements from array - new twistby laughingboy (Monk) |
on Nov 05, 2002 at 17:11 UTC ( [id://210519]=note: print w/replies, xml ) | Need Help?? |
If you are truely asking for a random element, then you can not add restictions. Otherwise it is not random!
Actually, what's being asked for here is called "random sampling without replacement" as opposed to "random sampling with replacement." That doesn't mean it's not random. Any good introductory statistics book will provide the details. laughingboy
In Section
Seekers of Perl Wisdom
|
|