Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: random elements from array - new twist

by Anonymous Monk
on Nov 05, 2002 at 11:43 UTC ( [id://210431]=note: print w/replies, xml ) Need Help??


in reply to 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!

Replies are listed 'Best First'.
Re: Re: random elements from array - new twist
by laughingboy (Monk) on Nov 05, 2002 at 17:11 UTC
    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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://210431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2024-03-19 06:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found