POV-Ray : Newsgroups : povray.newusers : seed : Re: seed Server Time
5 Sep 2024 18:23:19 EDT (-0400)
  Re: seed  
From: Chris Huff
Date: 23 Feb 2000 18:04:16
Message: <chrishuff_99-35DFA2.18053823022000@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.