zeed
    Preparing search index...

    Function arrayRandomElement

    • Return a random element from array using a secure random source if available.

      Type Parameters

      • T

        element type

      Parameters

      • arr: T[]

      Returns T

      a randomly selected element