1: /* rnd.c - version 1.0.2 */
   2: 
   3: #define RND(x)  ((rand()>>3) % x)
   4: 
   5: rn1(x,y)
   6: register x,y;
   7: {
   8:     return(RND(x)+y);
   9: }
  10: 
  11: rn2(x)
  12: register x;
  13: {
  14:     return(RND(x));
  15: }
  16: 
  17: rnd(x)
  18: register x;
  19: {
  20:     return(RND(x)+1);
  21: }
  22: 
  23: d(n,x)
  24: register n,x;
  25: {
  26:     register tmp = n;
  27: 
  28:     while(n--) tmp += RND(x);
  29:     return(tmp);
  30: }

Defined functions

rn2 defined in line 11; used 277 times

Defined macros

RND defined in line 3; used 4 times
Last modified: 1985-10-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2344
Valid CSS Valid XHTML 1.0 Strict