permute

fun DoubleArray.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): DoubleArray
fun IntArray.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): IntArray
fun BooleanArray.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): BooleanArray
fun <T> Array<T>.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): Array<T>
fun <T> MutableList<T>.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): MutableList<T>

Permutes the array in place. The array is changed.

Parameters

stream

the stream to use for randomness


fun IntArray.permute(streamNum: Int): IntArray
fun <T> Array<T>.permute(streamNum: Int): Array<T>
fun <T> MutableList<T>.permute(streamNum: Int): MutableList<T>

Permutes the array in place. The array is changed.

Parameters

streamNum

the stream number to use for randomness