Function randomEntry

  • Pick an arbitrary entry.

    Returns

    [kᵢ, vᵢ] | kᵢ ∈ x[0]; vᵢ ∈ x[1]

    Type Parameters

    • K

    • V

    Parameters

    • x: Lists<K, V>

      lists

    • fr: ReadFunction<number> = Math.random

      random number generator ([0, 1))

    Returns [K, V]

Generated using TypeDoc