1: /*	@(#)rand.c	2.1	SCCS id keyword	*/
   2: static  long    randx = 1;
   3: 
   4: srand(x)
   5: unsigned x;
   6: {
   7:     randx = x;
   8: }
   9: 
  10: rand()
  11: {
  12:     return(((randx = randx*1103515245 + 12345)>>16) & 077777);
  13: }

Defined functions

Defined variables

randx defined in line 2; used 3 times
  • in line 7-12(3)
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 648
Valid CSS Valid XHTML 1.0 Strict