Re: python & mathematical methods of picking numbers at random

From: Bart Nessux (bart_nessux_at_hotmail.com)
Date: 01/15/04


Date: Thu, 15 Jan 2004 15:31:49 -0500

Paul Rubin wrote:
> Bart Nessux <bart_nessux@hotmail.com> writes:
>
>>I am using method 'a' below to pick 25 names from a pool of 225. A
>>co-worker is using method 'b' by running it 25 times and throwing out
>>the winning name (names are associated with numbers) after each run
>>and then re-counting the list and doing it all over again.
>>
>>My boss thinks that 'b' is somehow less fair than 'a',
>
>
> Both are the same, as you can see by calculating the probability of
> any given name being selected. What is the application, and the
> computer environment? You may also need to worry about correlations
> in the underlying Mersenne Twister PRNG. If the application is
> something where randomness is very important (you're picking winners
> for a big lottery or something) then you should use a better RNG.

We're raffling off crock-pots... that's why I think this is OK for our
purposes.



Relevant Pages

  • Re: python & mathematical methods of picking numbers at random
    ... Bart Nessux wrote: ... > Paul Rubin wrote: ... as you can see by calculating the probability of ...
    (comp.lang.python)
  • Re: quiz for john/gerry--noted lotto experts
    ... probability of winning any prize to exceed the probability ... deny deny deny and feign innocence.everybody is long familiar ... you can't talk lotto when directly confronted with any kind of ...
    (rec.gambling.lottery)
  • Re: quiz for john/gerry--noted lotto experts
    ... the probability of winning any prize to exceed the ... deny deny deny and feign innocence.everybody is long ... you can't talk lotto when directly confronted with any kind ...
    (rec.gambling.lottery)
  • Re: Lottery facts for Sherry
    ... This is the basic law of probability that I learned in grade ... In the lottery this law is used to formulate the permutation ... Please keep in mind that this is my opinion and, ... to winning the lottery in my lifetime I have elected to use a ...
    (rec.gambling.lottery)
  • Re: Estimating the mean of the cumulative hypergeometric?
    ... for calculating a specific probability. ... zero when that happens. ... *r^2,..., so the remainder is bounded above by a geometric series. ...
    (sci.math)