uniform

fun <T : LinearType<T>> SimplexRange2D<T>.uniform(random: Random): T(source)

Generates a uniformly distributed value within the SimplexRange2D.

Return

a value of type T sampled uniformly within the 2D simplex range.

Parameters

random

the random number generator used to produce random values.


fun <T : LinearType<T>> SimplexRange3D<T>.uniform(random: Random): T(source)

Generates a uniformly distributed value within the 3D simplex range.

Return

a value of type T sampled uniformly within the range.

Parameters

random

the random number generator to produce the distribution.


fun <T : LinearType<T>> SimplexRange4D<T>.uniform(random: Random): T(source)

Generates a uniformly distributed value within the 4D simplex range using a random generator.

Return

a value of type T that represents a point within the simplex range

Parameters

random

an instance of the random number generator used to produce random values