dgt.util

Members

Functions

nullTerminate
Array!char nullTerminate(in string str)

Create a null terminated buffer from a string

random
float random()

A normalized random function

randomRange
int randomRange(in int min, in int max)

Generate a random int in a range

randomRange
float randomRange(in float min, in float max)

Generate a random float in a range

randomRange
Vector randomRange(in Vector a, in Vector b)

Generate a vector in a range

Meta