• Clones the given array and shuffles it.

    Type Parameters

    Type Parameters

    • T

    Parameters

    • array: readonly T[]

      the array to shuffle

    • generator: (() => number) = Math.random

      a function that returns a random value between 0 (inclusive) and 1 (exclusive), Math.random by default

        • (): number
        • Returns number

    Returns T[]

Generated using TypeDoc