rnd.eh

Pseudorandom numbers. More...

use "rnd.eh"

Functions

def rnd(n: Int): Int;
def rnddouble(): Double;
def rndfloat(): Float;
def rndint(): Int;
def rndlong(): Long;

Description

Pseudorandom number generators.

Function details

def rnd(n: Int): Int;
Returns a pseudorandom, uniformly distributed integer value in range from 0 (inclusive) through n (exclusive).

def rndint(): Int;
Returns a pseudorandom, uniformly distributed integer value.

def rndlong(): Long;
Returns a pseudorandom, uniformly distributed long value.

def rndfloat(): Float;
Returns a pseudorandom float value, uniformly distributed between 0.0f and 1.0f.

def rnddouble(): Double;
Returns a pseudorandom double value, uniformly distributed between 0.0 and 1.0.