• Shuffles the array in-place using Fisher-Yates algorithm.

    const a = [1, 2, 3, 4, 5];
    tf.util.shuffle(a);
    console.log(a);

    Parameters

    • array: any[] | Float32Array | Int32Array | Uint32Array

      The array to shuffle in-place.

    Returns void

    Doc

Generated using TypeDoc