module Glint::Random

Overview

Generate random numbers.

Defined in:

glint/random.cr

Class Method Summary

Class Method Detail

def self.between(a : Int32, b : Int32) #

Return a random integer value between a..b (inclusive).


[View source]
def self.seed=(seed : Int32) #

Set the seed for the random number generator.


[View source]
def self.up_to(a : Int32) #

Return a random integer value between 0..a (inclusive).


[View source]
def self.value #

Return a random float value between 0..1 (inclusive).


[View source]