Function randomValue

  • Pick an arbitrary value.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • fr: ReadFunction<number> = Math.random

      random number generator ([0, 1))

    Returns T

    x[i] | i ∈ 0..|x|

Generated using TypeDoc