POV-Ray : Newsgroups : povray.newusers : seed : Re: seed Server Time
5 Sep 2024 18:20:49 EDT (-0400)
  Re: seed  
From: Jean-Michel Grimaldi
Date: 24 Feb 2000 07:46:38
Message: <38B52852.548D6481@via.ecp.fr>
Chris Huff wrote:
> 
> 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.

Yes, and thus your image will always render the same.
As for the initial question, do the following :
 s = seed(1234) ;
 [...] A+random(s) [...]
This way you will get a number between A and A+1.
And if the result is not satisfying, just change 1234 into something
else.

-- 
JM


Post a reply to this message

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