shuffle

fun shuffle(random: Random = Random.Default, minDistance: Float = 45.0f)(source)

Replaces hue with a random hue at least minDistance degrees away from the current one, so a shuffle always looks like a change. minDistance is clamped to [0, 180].