libs/stream_message/unit_tests/diners.cpp
// Convenient function to return a random number within a range.
Convenient function to return a random number within a range.
Convenient function to return a random number within a range .
int random(int sup) {
    int r = get_rand();
    int x = r % sup;
    if (x < 0) {
	x = x + sup;
    }
    return x;
}
int random ( int sup ) { int r = get_rand ( ) ; int x = r % sup ; if ( x < 0 ) { x = x + sup ; } return x ; }
Convenient function to return a random number within a range.
Convenient function to return a random number within a range .