POV-Ray : Newsgroups : povray.general : problem: repeating rand patterns using seed in animation : Re: problem: repeating rand patterns using seed in animation Server Time
30 Jul 2024 20:23:36 EDT (-0400)
  Re: problem: repeating rand patterns using seed in animation  
From: Nicolas George
Date: 25 Jan 2009 04:00:32
Message: <497c2a30$1@news.povray.org>
Alain  wrote in message <497b6419$1@news.povray.org>:
> seed(pow(31*pi*clock,frame_number)}

What you are doing here is try to invent a brand new random function. There
are two problems with this method:

- Designing a random function is hard, and unexpected patterns often happen.
  Experts in cryptography around the world work very hard to create new
  ones, and they often fail.

- This particular function uses huge floating-point numbers, and quickly
  overflows.


Post a reply to this message

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