Re: Random number question?

From: Mark Nudelman (markn_at_greenwoodsoftware.com)
Date: 06/21/04


Date: Mon, 21 Jun 2004 15:17:31 GMT

Paul Allen Panks wrote:
> Test #2
> Random Number test
> 32
> 29
> 21
> 35
> 29
> 22
> 32
> 4
> 27
> 27
>
> Test #3
> Random Number test
> 21
> 18
> 10
> 24
> 17
> 11
> 21
> 28
> 16
> 16
>
> Ah oh...the last two tests repeated the last two sets of numbers not
> once but TWICE! That's not good!
[snip]
> Is there a way to truly limit the number of repeats during a set of
> random number generation? I can foresee a lot of random numbers in my
> own mind, but they have to be truly, truly random for the random
> number generator to be doing a good job.

Your requirements seem to be inconsistent. There's no reason why "truly"
random numbers wouldn't have consecutive identical numbers (if that's what
you mean by "repeats"). If you restrict your sequence somehow to avoid
consecutive identical numbers, then your sequence is not random. Perhaps
you want something more like a shuflling algorithm, that simply randomly
permutes a sequence of consecutive integers.

As others have noted, it's not possible for a computer to produce truly
random numbers in software.

--Mark



Relevant Pages

  • Re: coin toss problem
    ... no. of 6 heads in a row in a sequence of 200 tosses was at least one... ... to global variables in a program this small and simple. ... There is no good reason here. ...
    (comp.lang.c)
  • Re: Sean Pitmans (and other creationists) selective credulity
    ... For some reason, he wants to be convinced that detailed convergence in ... This claims that the protein relaxin is identical in sequence between a ... But Christian Schwabe, the author pushing this factoid, wants to believe ... And Sean wants to believe the result for his own reasons, ...
    (talk.origins)
  • Re: Sean Pitmans (and other creationists) selective credulity
    ... For some reason, he wants to be convinced that detailed convergence in ... This claims that the protein relaxin is identical in sequence between a ... But Christian Schwabe, the author pushing this factoid, wants to believe ... And Sean wants to believe the result for his own reasons, ...
    (talk.origins)
  • Re: Question for Sean Pitman
    ... Even though the house takes every precaution ... Horse shit, Sean. ... genetic sequence that you think absolutely positively could not have ... Is it reason number ...
    (talk.origins)
  • Re: Sean Pitmans (and other creationists) selective credulity
    ... For some reason, he wants to be convinced that detailed convergence in ... This claims that the protein relaxin is identical in sequence between a ... Considering that the protein varies ... But Christian Schwabe, the author pushing this factoid, wants to believe ...
    (talk.origins)

Loading