POV-Ray : Newsgroups : povray.binaries.images : Toward a less-lame rand() function. : Re: Toward a less-lame rand() function. Server Time
1 Aug 2024 00:19:25 EDT (-0400)
  Re: Toward a less-lame rand() function.  
From: gregjohn
Date: 19 May 2009 18:50:00
Message: <web.4a1337452a89ae6d34d207310@news.povray.org>
Darren New <dne### [at] sanrrcom> wrote:

> If you have a known number of random numbers being used in each frame, you
> can seed once at frame 0, then on each subsequent frame, generate
> frame_number time known_random_number_count random numbers, and then pick up
> the stream from there. Use a while loop in SDL to generate calls to rand(),
> in other words.
>

It works, if the lack of pattern in this image were any indication:


Post a reply to this message


Attachments:
Download 'zrandtest12e.png' (39 KB)

Preview of image 'zrandtest12e.png'
zrandtest12e.png


 

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