Function shuffle

  • Shuffle an array in place using Fisher-Yates algorithm

    Type Parameters

    • T

    Parameters

    • array: T[]

      Array to shuffle

    Returns T[]

    The shuffled array