|
 |
Tom Melly <tom### [at] tomandlu co uk> wrote:
:> Perhaps seed() takes just the integer part of the given parameter?
:> (I don't know, I'm just guessing.)
: Nah - it's just that the stream created with seed(0.5) is very similiar to the
: stream created with seed(0.6) - well IMHO, it certainly fits the symptoms.
I don't think so. If you make a simple test, you'll see that there's
absolutely no difference between seed(0), seed(0.5) and seed(0.6). I have
the strong feeling that seed() takes just the integer part of the parameter.
I can try to check this from the source code.
#declare S1=seed(0.5);
#declare S2=seed(0.6);
#declare S3=seed(0);
#declare Ind=0;
#while(Ind<100)
#declare n1 = rand(S1);
#declare n2 = rand(S2);
#declare n3 = rand(S3);
#debug concat(str(rand(S1),0,17), " ",
str(rand(S2),0,17), " ",
str(rand(S3),0,17), " ")
#if(n1=n2 & n2=n3) #debug "equal\n"
#else #debug "different\n"
#end
#declare Ind=Ind+1;
#end
--
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -
Post a reply to this message
|
 |