Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: random elements from array - new twist

by laughingboy (Monk)
on Nov 05, 2002 at 17:11 UTC ( #210519=note: print w/replies, xml ) Need Help??


in reply to Re: random elements from array - new twist
in thread random elements from array - new twist

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

  • Comment on Re: Re: random elements from array - new twist

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://210519]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-02-24 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (351 votes). Check out past polls.