|
|
In article <01bf7e50$a4f58320$667dd383@etnica.ibb.uu.nl>, "kobus"
<kob### [at] hotmailcom> wrote:
> Hello there,
>
> I have a question about random and seed. First one have to declare
> seed(A).
> Will random then return a value between A and A+1? If that is the case I
> understood the manual correctly.
The rand() function always returns a value between 0 and 1. Specifying a
different seed will just give a different sequence of random numbers.
Most computer random number generators are actually pseudo-random. They
produce a specific sequence of numbers from each seed value. If you use
seed(444), you will get a different sequence from what you would get if
you used seed(999), and that sequence will always be the same.
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|