Function randomEntry

  • Pick an arbitrary entry.

    Type Parameters

    • T

    Parameters

    • x: Set<T>

      a set

    • fr: ReadFunction<number> = Math.random

      random number generator ([0, 1))

    Returns [T, T]

    [vᵢ, vᵢ] | vᵢ ∈ x

Generated using TypeDoc