random

inline fun ComplexFloatArray.random(): ComplexFloat
inline fun ComplexDoubleArray.random(): ComplexDouble

Returns a random element from this array.

Throws

if this array is empty.


fun ComplexFloatArray.random(random: Random): ComplexFloat
fun ComplexDoubleArray.random(random: Random): ComplexDouble

Returns a random element from this array using the specified source of randomness.

Throws

if this array is empty.