module Glint::Random
Overview
Generate random numbers.
Defined in:
glint/random.crClass Method Summary
-
.between(a : Int32, b : Int32)
Return a random integer value between
a
..b
(inclusive). -
.seed=(seed : Int32)
Set the seed for the random number generator.
-
.up_to(a : Int32)
Return a random integer value between 0..
a
(inclusive). -
.value
Return a random float value between 0..1 (inclusive).