shuffle

fun ComplexFloatArray.shuffle()
fun ComplexDoubleArray.shuffle()

Randomly shuffles elements in this array in-place.


fun ComplexFloatArray.shuffle(random: Random)
fun ComplexDoubleArray.shuffle(random: Random)

Randomly shuffles elements in this array in-place using the specified random instance as the source of randomness.

See: https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#The_modern_algorithm