Function randomBeta

  • Returns a function for generating random numbers with a beta distribution with alpha and beta shape parameters, which must both be positive.

    Parameters

    • alpha: number

      Shape parameter

    • beta: number

      Shape paramter

    Returns (() => number)

      • (): number
      • Returns a function for generating random numbers with a beta distribution with alpha and beta shape parameters, which must both be positive.

        Returns number