|
|
Tom Melly wrote:
>
> How many numbers are in the rand stream before it repeats itself, or
> is this a meaningless question?
#declare rsA=seed(0);
#declare rsB=seed(0);
#local sA=0;#local sB=-1;
#local cR=0;
#while(sA!=sB)
#local sA=rand(rsA);
#local sB=rand(rsB);
#local sB=rand(rsB);
#local cR=cR+1;
#end
#debug concat("Seed repeats after ",str(cR,0,0)," repetitions.\n"
Post a reply to this message
|
|