Function shuffleArray

  • Randomly reorder the contents of the array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to shuffle. This is modified in place.

    Returns T[]

    The original array.