Function shuffleArray

  • Shuffles an array, using the algorithm found here: https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array

    Note that this changes the order of the actual array that is passed in, and returns the mutated array. This implementation may change in favor of an immutable one, where a copy of the array is created, shuffled and returned, leaving the original one intact.

    Returns

    Returns the shuffled array

    Type Parameters

    • T

    Parameters

    • array: T[]

    Returns T[]

Generated using TypeDoc