math.random.uniform

Syntax

a := math.random.uniform(<i>)

Get a uniform random number, or a list of multiple random numbers.

These values will fall in the range [0.0,1.0].

If an integer argument i is given, then the return value will be a list of i random numbers. Otherwise the return value will be a single random value.

Returns:

a - A single uniform random number, or a list of i uniform random numbers.

Arguments:

i - An option integer indicating the the number of random values to generate.