Method: Random.rand

Defined in:
random.c

.randFloat .rand(max) ⇒ Numeric

Overloads:



1580
1581
1582
1583
1584
1585
1586
# File 'random.c', line 1580

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;
}