POV-Ray : Newsgroups : povray.off-topic : PRNG : Re: PRNG Server Time
29 Jul 2024 18:16:26 EDT (-0400)
  Re: PRNG  
From: Warp
Date: 22 Jun 2011 13:50:37
Message: <4e022b6d@news.povray.org>
Invisible <voi### [at] devnull> wrote:
> This is great if you just want to produce a really long stream of random 
> numbers. But are there any PRNGs out there which offer random (!) access 
> to the stream of numbers? In other words, the ability to compute the Nth 
> random number without needing to compute any of the preceding ones?

  You could use a hashing function to convert N to a pseudorandom number,
and it should work exactly as you describe.

-- 
                                                          - Warp


Post a reply to this message

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