POV-Ray : Newsgroups : povray.general : rand question : Re: rand question Server Time
5 Nov 2024 20:20:19 EST (-0500)
  Re: rand question  
From: Warp
Date: 11 Feb 2003 17:52:44
Message: <3e497ebc@news.povray.org>
John VanSickle <evi### [at] hotmailcom> wrote:
> #while(sA!=sB)

  Are you completely sure that the same number will not appear twice
in the stream without looping back to the beginning?
  Naturally this might be so, but if the random number generator is made
even with the slightest quality, the same number can repeat many times
in the stream before it loops over.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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