POV-Ray : Newsgroups : povray.advanced-users : Random number generator needed ! : Re: Random number generator needed ! Server Time
30 Jul 2024 02:15:01 EDT (-0400)
  Re: Random number generator needed !  
From: Rune
Date: 21 Feb 2001 15:20:16
Message: <3a942300@news.povray.org>
"Warp" wrote:
> Rune wrote:
> : Basically it will never be of any use to use rand( seed( VAL ) )
> : no matter what "VAL" is, because it won't add any randomness at all.
>
>   What he wanted

Who?

> was that a certain pair of values is converted to some value (always
> the same value). Each time the function is called with a certain pair
> of values, the same result is returned. This value should be "random"
> in the way that there's no (easily) visible connection between the
> input values and the result.

Yes, that's what I wanted.

>   For this rand(seed(VAL)) works quite well. It returns a value from
> 0 to 1 which is seemingly not related to VAL.

Yes if wanted just a single random value - but I need dozens of them!
Not only should the random number have no visible connection to VAL. It
should also have no visible connection to the other random numbers. I didn't
explicitly say that, as I thought it was needless to say.

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 28)
/ Also visit http://www.povrayusers.org


Post a reply to this message

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