shuffle

abstract fun shuffle(random: Random)

使用给定的随机数生成器随机排列此数组的元素.

参考 kotlin.collections.shuffle

Parameters

random

用于随机排列元素的随机数生成器