POV-Ray : Newsgroups : povray.advanced-users : Need help with rand/seed : Re: Need help with rand/seed Server Time
2 Nov 2024 03:16:46 EDT (-0400)
  Re: Need help with rand/seed  
From: Vahur Krouverk
Date: 13 Jul 2000 12:27:07
Message: <396DEE8A.2825C1FF@aetec.ee>
Chris Huff wrote:
> 
> In article <396DE7BD.CBD106A4@aetec.ee>, Vahur Krouverk
> <vah### [at] aetecee> wrote:
> 
> > For value between 1 and 5 use following expression:
> > (rand()+1)*4
> 
> Umm, that will give random numbers between 4 and 8. You want this:
> (rand()*4+1)
> Or use the RRand() macro I posted earlier.
> 
Damn, You are right. Only excuse would be, that it's 6 p.m. here and I
my brain is tired already...


Post a reply to this message

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