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.
--
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/
Post a reply to this message
|