8 * This function calls floor() which does not have a prototype.
9 * Test that the argument to floor is passed correctly.
14 double t = A*seed + 1;
17 seed = t - (M * floor(t / M)); /* t%M if t > M; t otherwise */
24 main(int argc, char** argv)
26 double seed = 123 * ((argc > 1)? atof(argv[1]) : 3.1415926);
27 printf("my_rand(%lf) = %lf\n", seed, my_rand(seed));