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

    Function shuffle

    • Shuffles an array in place uniformly.

      This uses the Fisher–Yates algorithm.

      Type Parameters

      • T

        type of the item

      Parameters

      • xs: T[]

        the array

      • rand: Random = random

        random number generator

      Returns void