http://qs321.pair.com?node_id=210431


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!
  • Comment on Re: random elements from array - new twist

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