ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/random.h
(Generate patch)

Comparing ray/src/common/random.h (file contents):
Revision 2.2 by greg, Mon Sep 21 12:02:27 1992 UTC vs.
Revision 2.4 by greg, Tue Feb 13 11:32:17 1996 UTC

# Line 10 | Line 10
10  
11   #ifdef  MSDOS
12  
13 < #define random          rand
13 > #define random()        ((long)rand()<<16^(long)rand()<<6^(long)rand()>>4)
14  
15   #define frandom()       (rand()*(1./32768.))
16  
# Line 32 | Line 32 | extern double  drand48();
32   #endif
33   #endif
34  
35 + #ifdef  MC
36 + #define  urand(i)       frandom()
37 + #else
38   #define  urand(i)       ((urperm[(i)&urmask]+frandom())/(urmask+1))
39 + #endif
40  
41   extern short  *urperm;
42   extern int  urmask;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines