Shuffles the array in-place using Fisher-Yates algorithm.
const a = [1, 2, 3, 4, 5];tf.util.shuffle(a);console.log(a); Copy
const a = [1, 2, 3, 4, 5];tf.util.shuffle(a);console.log(a);
The array to shuffle in-place.
Generated using TypeDoc
Shuffles the array in-place using Fisher-Yates algorithm.