Rand - SardonyxLang/SardonyxStd GitHub Wiki

require "rand"

Basic random number functions.

Object Rand

  • Rand:seed(n): sets the random seed to n.
  • Rand:rand_num(): returns a random num between 0.0 and 1.0.
  • Rand:rand_int(n): returns a random int between 0 and n.