Function random

  • Type Parameters

    • T

    Parameters

    • array: T[]

      Array to select from

    Returns T

    Random item from array