POV-Ray : Newsgroups : povray.binaries.images : Question on introducing randomness. : Re: Question on introducing randomness. Server Time
18 Aug 2024 08:21:30 EDT (-0400)
  Re: Question on introducing randomness.  
From: Christoph Hormann
Date: 13 May 2001 04:36:16
Message: <3AFE47CB.A8284B9F@gmx.de>
Thomas Lake wrote:
> 
> Thanks for the info! I'm trying to find out how to create random numbers
> between -0.75 and 0.75. I tried to come up with the function using your
> examples but I can't seem to get it right. The general for seems to be
> 
> Num = rand*x + y
> 

where x is the range of values and y the center minus half the range (or
the lowest value):

#declare Num = rand(Seed)*1.5 - 0.75;

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

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