Re: question about random generator
- From: "Robert Gamble" <rgamble99@xxxxxxxxx>
- Date: 26 Jul 2005 05:10:19 -0700
Antonio wrote:
> pete wrote:
> > Does "pseudo-random" mean the same thing as "uniformly distributed" ?
>
> Completely OT, but anyway... No, pseudo-random means that it looks like
> it's random but it really isn't. There is no way to generate trully
> random numbers with a computer, everything you do is deterministic, but
> you can generate sequences that look like they're random but that
> aren't. Hence the term _pseudo_-random.
Yes, we know, you didn't say anything that wasn't completely obvious.
The C Standard specifies that rand() generates pseudo-random numbers,
the questions is whether a conforming implementation could generate a
series of normal distributed numbers via the rand() function or if the
term pseudo-random implies that the numbers must be generated with a
uniform distribution. I was wondering the same thing myself, I think
the intention is that the numbers be uniform but that may be debatable.
Robert Gamble
.
- Follow-Ups:
- Re: question about random generator
- From: Antonio
- Re: question about random generator
- References:
- question about random generator
- From: Marc Dansereau
- Re: question about random generator
- From: Eric Sosman
- Re: question about random generator
- From: Peter Nilsson
- Re: question about random generator
- From: Eric Sosman
- Re: question about random generator
- From: pete
- Re: question about random generator
- From: Antonio
- question about random generator
- Prev by Date: Re: strcpy and strcat's return type
- Next by Date: Re: Why??
- Previous by thread: Re: question about random generator
- Next by thread: Re: question about random generator
- Index(es):
Relevant Pages
|