iter-fns - v0.13.0
    Preparing search index...

    Function shuffled

    • Shuffles an array uniformly after copying it, returning the copy.

      This uses the Fisher–Yates algorithm.

      Type Parameters

      • T

        type of the item

      Parameters

      • xs: readonly T[]

        the array

      • rand: Random = random

        random number generator

      Returns T[]