diff --git a/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp b/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp index 0ad755b7500..907ccb8e30b 100644 --- a/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp +++ b/Random_numbers/test/Random_numbers/test_Random-no-CGAL_TEST_SUITE.cpp @@ -7,7 +7,7 @@ int main() { int u = CGAL::get_default_random().get_int( 0, 1000); - if(u >= 0 || u <= 1000) + if(u >= 0 && u < 1000) return 0; else return 1;