uniformPower

fun <T : LinearType<T>> SimplexRange2D<T>.uniformPower(exp: Double, random: Random = Random.Default): 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.