Method: Random.rand

Defined in:
random.c

.randFloat .rand(max) ⇒ Numeric

Alias of Random::DEFAULT.rand.

Overloads:


1402
1403
1404
1405
1406
1407
1408
# File 'random.c', line 1402

static VALUE
random_s_rand(int argc, VALUE *argv, VALUE obj)
{
    VALUE v = rand_random(argc, argv, Qnil, rand_start(&default_rand));
    check_random_number(v, argv);
    return v;
}