12 int f_rand(
int argc,
const int *argt,
void **args)
38 res[i] = (lo == hi) ? lo : (
int)(lo +
x % (
unsigned int)(hi - lo));
44 FCELL *arg1 = args[1];
45 FCELL *arg2 = args[2];
58 res[i] = (
FCELL)(lo +
x * (hi - lo));
64 DCELL *arg1 = args[1];
65 DCELL *arg2 = args[2];
78 res[i] = lo +
x * (hi - lo);
long G_mrand48(void)
Generate an integer in the range [-2^31, 2^31)
double G_drand48(void)
Generate a floating-point value in the range [0,1)
int f_rand(int argc, const int *argt, void **args)