Hex Core JS
    Preparing search index...

    Function shuffle

    • Creates a shallow copy of the given array and shuffles the copy. Does not modify the original array. Uses the Fisher-Yates Algorithm.

      Type Parameters

      • T

      Parameters

      • array: T[]

        The array to copy and shuffle.

      Returns T[]