Пример #1
0
inline unsigned long RandomIntLong( ) {
  return ran_next( );
}
Пример #2
0
// Returns a random integer in the range [0,max]
inline int RandomInt( int max ) {
  return ( ran_next( ) % (max+1) );
}
Пример #3
0
int RandomInt( int max ) 
  // Returns a random integer in the range [0,max]
{
  return ( ran_next( ) % (max+1) );
}