|
![](/i/fill.gif) |
In article <38B52852.548D6481@via.ecp.fr>, Jean-Michel Grimaldi
<jm### [at] via ecp fr> wrote:
> 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.
Not "random()", "rand()". But this gives me an idea...
#macro random(Sd, Mn, Mx)
(rand(Sd)*(Mx-Mn) + Mn)
#end
Now, this should let you use "random(stream, min_limit, max_limit)" for
your random numbers, where stream is the variable initialized by seed().
The other two should be pretty explanatory.
I haven't had time to test it though. :-)
#declare S = seed(589743);
sphere {< random(S,-1, 2), 0, 0>, 0.1}
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |