13 int f_rand(
int argc,
const int *argt,
void **args)
40 res[i] = (lo == hi) ? lo : lo + x % (
unsigned int)(hi - lo);
47 FCELL *arg1 = args[1];
48 FCELL *arg2 = args[2];
61 res[i] = (
FCELL) (lo + x * (hi - lo));
68 DCELL *arg1 = args[1];
69 DCELL *arg2 = args[2];
82 res[i] = lo + x * (hi - lo);
int f_rand(int argc, const int *argt, void **args)
double G_drand48(void)
Generate a floating-point value in the range [0,1)
long G_mrand48(void)
Generate an integer in the range [-2^31, 2^31)