Searched refs:RandN (Results 1 – 1 of 1) sorted by relevance
59 inline u32 RandN(u32 *state, u32 n) { return Rand(state) % n; } // [0, n) in RandN() function66 Swap(a[i], a[RandN(&state, i + 1)]); in RandomShuffle()