Rand - SardonyxLang/SardonyxStd GitHub Wiki
require "rand"
Basic random number functions.
Object Rand
Rand:seed(n)
: sets the random seed ton
.Rand:rand_num()
: returns a random num between0.0
and1.0
.Rand:rand_int(n)
: returns a random int between0
andn
.