Co-Simulation/Sumo/sumo-1.7.0/unittest/src/utils/common/RandHelperTest.cpp
// ===========================================================================
// test definitions
// ===========================================================================
/* Test the method 'rand' without parameters.*/
test definitions
Test the method 'rand' without parameters.
test definitions Test the method ' rand ' without parameters .
TEST(RandHelper, test_rand_range) {
    for (int i = 0; i < 1000; i++) {
        const double rand = RandHelper::rand();
        EXPECT_LT(rand, double(1));
        EXPECT_LE(0., rand);
    }
}
TEST ( RandHelper , test_rand_range ) { for ( int i = 0 ; i < 1000 ; i ++ ) { const double rand = RandHelper :: rand ( ) ; EXPECT_LT ( rand , double ( 1 ) ) ; EXPECT_LE ( 0. , rand ) ; } }
test definitions
Test the method 'rand' without parameters.
test definitions Test the method ' rand ' without parameters .