Returns an array with its elements randomly shuffled.

  • Parameters

    • arr: number[]

      The array

    Returns number[]