Function randomGeometric

  • Returns a function for generating numbers with a geometric distribution with success probability p. The value p is in the range [0, 1].

    Parameters

    • p: number

      Success probability

    Returns (() => number)

      • (): number
      • Returns a function for generating numbers with a geometric distribution with success probability p. The value p is in the range [0, 1].

        Returns number