Random
class in package klyn.math

    public class Random<FLOAT_TYPE extends AbstractFloat = Double>:

Random

Pseudo-random number utilities.

@param <FLOAT_TYPE> Floating return type for random values.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static native | fillRandom `fillRandom(values as ArrayList<FLOAT_TYPE>, count as Int) as Void` | Fills an ArrayList with random floating values in [0, 1).
public static native | randInt `randInt(min as Int, max as Int) as Int` | Returns a random integer in [min, max].
public static | randInt `randInt(min as Long, max as Long) as Long:` | Returns a random long integer in [min, max].
public static | randInt `randInt(min as UInt, max as UInt) as UInt:` | Returns a random unsigned integer in [min, max].
public static native | randRange `randRange(min as FLOAT_TYPE, max as FLOAT_TYPE) as FLOAT_TYPE` | Returns a random value in [min, max].
public static native | random `random() as FLOAT_TYPE` | Returns a random value in [0, 1).