Re: Random number generators
- From: "William Hughes" <wpihughes@xxxxxxxxxxx>
- Date: 20 Sep 2006 17:58:30 -0700
mensanator@xxxxxxxxxxx wrote:
Robert Israel wrote:
In article <eeqftg$kl$1@xxxxxxxxxxxxxxxxxxxxxxxxxx>,
rancid moth <rancidmoth@xxxxxxxxx> wrote:
Im not very familiar with RNG's or the mathematics behind them, but I have a
mate who uses a built in RNG implemented within a database environment. He
has tested it and from a set of 2 million numbers he performed 2 million
generations. the set he ended up with had about 32 thousand numbers. It
strikes me as rather small given the size of the sample and the number of
test. However I have no prior experience or much knowledge about it, and to
make things worse we can not find out _how_ or what algorithm this RNG uses.
My aim of this post is to obtain feedback by those more knowledgeable about
such things as to whether or not the above stats seem reasonable for a
_good_ RNG or more standard for a bad one.
I guess there is some possibility that the RNG stores more than 15 bits
internally and just reports 15 bits, but I suspect it's more likely that
this is just a 15-bit PRNG. Not only will it only give you 32768
different results, after producing those it will repeat the same ones
in the same order: it has a period of just 32768.
But doesn't the Mersenne Twister have a period greater
than it's bit size? Can't the same 32768 values be given
in more than one order?
Of course (e.g. feed the output from the Mersenne Twister
into a 15 bit variable) but what do you think is meant by
"I guess there is some possibility that the RNG stores more than 15
bits
internally and just reports 15 bits". The 15 bits refers to the
number
of bits of state, not the number of bits of output.
-William Hughes
For almost any
application where you'll ask for a random number more than that many
times, this is really really bad news.
Robert Israel israel@xxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada
.
- References:
- Random number generators
- From: rancid moth
- Re: Random number generators
- From: Robert Israel
- Re: Random number generators
- From: mensanator@xxxxxxxxxxx
- Random number generators
- Prev by Date: Re: after fermat's last theorem
- Next by Date: Re: JSH: The "Published" paper he dosen't what you to know about.
- Previous by thread: Re: Random number generators
- Next by thread: Re: Random number generators
- Index(es):
Relevant Pages
|