Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/common/RandHelperTest.cpp
/* Test the method 'rand' with two int limits.*/
Test the method 'rand' with two int limits.
Test the method ' rand ' with two int limits .
TEST(RandHelper, test_rand_range_two_int) {
    for (int i = 0; i < 1000; i++) {
        const double rand = RandHelper::rand(50, 100);
        EXPECT_LT(rand, 100);
        EXPECT_LE(50, rand);
    }
}
TEST ( RandHelper , test_rand_range_two_int ) { for ( int i = 0 ; i < 1000 ; i ++ ) { const double rand = RandHelper :: rand ( 50 , 100 ) ; EXPECT_LT ( rand , 100 ) ; EXPECT_LE ( 50 , rand ) ; } }
Test the method 'rand' with two int limits.
Test the method ' rand ' with two int limits .