sample
Draws a single random integer from this binomial distribution.
For small trial counts (fewer than 25), uses direct simulation by running each trial independently. For large trial counts, uses a normal approximation with the result clamped to the valid range 0, trials.
Return
a random number of successes drawn from this distribution, in [0, trials].
Parameters
random
the source of randomness.