POV-Ray : Newsgroups : povray.documentation.inbuilt : (seed) could use a better explanation : Re: (seed) could use a better explanation Server Time
29 Apr 2024 04:54:08 EDT (-0400)
  Re: (seed) could use a better explanation  
From: Kenneth
Date: 11 Oct 2005 23:55:01
Message: <web.434c87f56c2f1bfd82bb7c00@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:

>   A 32-bit number, which can represent 2^32 different values, contains
> 32 *binary* digits (ie. 0 or 1).
>   In decimal the maximum value of a 32-bit number is 4294967295 (10 digits).

>                                                           - Warp

Thanks.  BTW, the clue was sitting there right in front of me, and I didn't
*see* it. Sorry.

Warp wrote...
>      The seed value (which is a 32-bit integer) jumps pseudorandomly over
>      its entire value space (ie. between 0 and 2^32-1) and the value returned
>      by rand() is simply calculated from this seed value.

Ken


Post a reply to this message

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