• Returns a random array index

    Type Parameters

    • T

    Parameters

    • array: T[]

      the array to get the index from

    Returns number

    a random array index