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 1.3 by greg, Tue Dec 4 11:23:58 1990 UTC vs.
Revision 1.4 by greg, Fri May 17 13:51:29 1991 UTC

# Line 3 | Line 3
3   /* SCCSid "$SunId$ LBL" */
4  
5   /*
6 < *  random.h - header file for random(3) function.
6 > *  random.h - header file for random(3) and urand() function.
7   *
8   *     10/1/85
9   */
# Line 23 | Line 23 | extern double  drand48();
23   #define  frandom()      drand48()
24  
25   #endif
26 +
27 + #define  urand(i)       ((urperm[(i)&urmask]+frandom())/(urmask+1))
28 +
29 + extern short  *urperm;
30 + extern int  urmask;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines