klyn.math.Random.fillRandom
method

    public static native fillRandom(values as ArrayList<FLOAT_TYPE>, count as Int) as Void

Description

Fills an ArrayList with random floating values in [0, 1).

Existing elements are replaced in place.

Parameters

- values Buffer updated in place.
- count Number of generated values.

Example

    values = [0.0, 0.0, 0.0]
    Random.fillRandom(values, 3)
    print(values)