POV-Ray : Newsgroups : povray.general : rand question : Re: rand question Server Time
5 Aug 2024 02:18:30 EDT (-0400)
  Re: rand question  
From: John VanSickle
Date: 12 Feb 2003 17:50:59
Message: <3E4ACFD3.285EF175@hotmail.com>
Warp wrote:
> 
> 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?

#local rsA=seed(0);
#local rsB=seed(rand(rsA));
#if(rand(rsA)=rand(rsB))
  #debug "Yes, I am sure.\n"
#else
  #debug "No, I am not sure.\n"
#end

Regards,
John


Post a reply to this message

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