ns-allinone-2.35/nam-1.15/rng.cc
long RNG::rand_int (long low, long high) 
{ 
	//	return (long) low + (long) (((double) (high-low) * drn) + 0.5);
	return ((long) (low + (unsigned long) (((unsigned long) 
						(high-low+1)) * rand_u01())));
}
//------------------------------------------------------------------------- 
// Generate the next random integer. 
// 
Generate the next random integer.
Generate the next random integer .
long RNG::rand_int (long low, long high) 
{ 
	return ((long) (low + (unsigned long) (((unsigned long) 
						(high-low+1)) * rand_u01())));
}
long RNG :: rand_int ( long low , long high ) { return ( ( long ) ( low + ( unsigned long ) ( ( ( unsigned long ) ( high - low + 1 ) ) * rand_u01 ( ) ) ) ) ; }
Generate the next random integer.
Generate the next random integer .
//	return (long) low + (long) (((double) (high-low) * drn) + 0.5);