help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] random numbers for distributed computations


From: Michael Creel
Subject: Re: [OctDev] random numbers for distributed computations
Date: Mon, 11 Apr 2005 12:42:45 +0200
User-agent: KMail/1.7.2

On Monday 11 April 2005 11:57, Francesco Potorti` wrote:
> >I have a question about this. If a RNG has a period of X, that means that
> >there are X unique values that are generated, and then the sequence
> > repeats.
>
> No, it means that the sequence repeats after X values are produced.  The
> period length says nothing about the space of values.  However, for good
> general purpose generators, the size of the space of values is much
> smaller than the period.

OK, you're saying that a generator with period 5 could produce values like
1 2 2 1 2 *** 1 2 2 1 2 *** 1 2 2 1 2
so the set of unique values is smaller than the period, correct?

This may be, but for the moment my main question is whether the set of unique 
values that is generated depends upon the initial seed, or whether it's just 
the starting point in the sequence that depends on the initial seed. Could 
the unique values be 3 and 4, say, or will they always be 1 and 2?
M.



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]