|
|
On Mon, 22 Oct 2001 12:12:43 -0400, "Slime" <noo### [at] hotmailcom>
wrote:
> Unfortunately, Outlook Express seems to delete old messages and I can't
> figure out how to make it *stop* doing that, so I don't really remember the
> original post that this applied to.
http://news.povray.org/povray.beta-test/18823/
> However, if I remember correctly, I
> think it was a matter of splitting it up into thirds, and what was being
> done was someone was testing if a number between zero and one was less than
> 1/3, and then if it was less than 1/2. I figured it should be 1/3 and then
> 2/3, to split it up evenly. But I don't really remember or care enough to
> argue the point anymore. =)
But I can't stay when you are wrong. My english is not enough to
explain but take this script for proof. It takes _two_ random values
just like original script. I don't know how to set up "follow-up" in
my newsreader but change group if you want talk about this problem.
#include "stdinc.inc"
#local test=function(A,B){select(A-(1/3),0,select(B-(1/2),1,2))}
#local Count=array[3]{0,0,0};
#local Seed=0;
#local Counter=0;
#while(Counter<10000)
#local Result=test(rand(Seed),rand(Seed));
#local Count[Result]=Count[Result]+1;
#local Counter=Counter+1;
#end
#warning Str(Count[0])
#warning Str(Count[1])
#warning Str(Count[2])
ABX
Post a reply to this message
|
|