POV-Ray : Newsgroups : povray.pov4.discussion.general : Feature requests: true rand() and date() : Re: Feature requests: true rand() and date() Server Time
5 May 2024 04:57:29 EDT (-0400)
  Re: Feature requests: true rand() and date()  
From: clipka
Date: 4 Jan 2009 23:55:01
Message: <web.49619190dfc337b2c38b01850@news.povray.org>
"Timo Poikola" <nomail@nomail> wrote:
> First of all, it will be nice if the RNG is able to generate true random
> numbers.

Not possible without some dedicated hardware (atomic decay, thermal noise, ...).
All software can do on its own is something that *looks* more or less random.

Then again, maybe what you actually want is a pseudorandom sequence that is
different every time you run it. For that, using something like...

> I will be also happy if there is date() or time() or localtime() or
> something mechanism which returns a timestamp.

.... as a seed for the RNG would do the job.


Post a reply to this message

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