Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/common/RandHelperTest.cpp
/* Test the method 'rand' with an upper float limit.*/
Test the method 'rand' with an upper float limit.
Test the method ' rand ' with an upper float limit .
TEST(RandHelper, test_rand_range_float) {
    for (int i = 0; i < 1000; i++) {
        const double rand = RandHelper::rand(double(10));
        EXPECT_LT(rand, double(10));
        EXPECT_LE(0., rand);
    }
}
TEST ( RandHelper , test_rand_range_float ) { for ( int i = 0 ; i < 1000 ; i ++ ) { const double rand = RandHelper :: rand ( double ( 10 ) ) ; EXPECT_LT ( rand , double ( 10 ) ) ; EXPECT_LE ( 0. , rand ) ; } }
Test the method 'rand' with an upper float limit.
Test the method ' rand ' with an upper float limit .