Please find attached two in principle identical kinds of simulating the one-sided exact Fisher-test of obtaining at least 86 successes in 129 draws in a population of size 299 containing 167 successes. 1st Version is rather slow and yields too large a probability. 2nd Version is fast and its result is pretty similar to the theoretical probability. Does this possibly indicate bugs in the RandomVariate and/or Hypergeometric functions or mechanisms?
Attachments: