POV-Ray : Newsgroups : povray.advanced-users : New random distribution macros : Re: New random distribution macros Server Time
23 Apr 2024 23:09:34 EDT (-0400)
  Re: New random distribution macros  
From: jr
Date: 3 Mar 2021 16:10:02
Message: <web.603ffaa9296d8a3b79819d980@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> return (cn&1);    // 0 if even (out), and 1 if  odd (in)
> Not sure what the & notation is - maybe xor or something....

logical and.  as per comment, the LSB (least significant bit) of 'cn' is
returned.


regards, jr.


Post a reply to this message

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