POV-Ray : Newsgroups : povray.programming : Seed() Rand() : Seed() Rand() Server Time
29 Jul 2024 08:17:06 EDT (-0400)
  Seed() Rand()  
From: Bjorn Hellqvist
Date: 23 Mar 1998 21:38:35
Message: <35171CAB.1988E0CC@stockholm.mail.telia.com>
Ok can someone explain how
Seed() and Rand() works. 

It seems not to work the way i wanted it to work. 

short cuts of the script. 

#declare RndNo=Seed(123)

#while (foo > 0)
	#declare Rnd=rand(RndNo)
	#if (rnd <= 0.1)
		//do the stuff
	#end
	#if (0.1 < Rnd <= 0.2)
		//do some other stuff
	#end
	...
	...
#end

it seems to goto just one of the if statement.

/Thanks Bjorn Hellqvist
	// Sweden


Post a reply to this message

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