Open ohliumliu opened 8 years ago
tests: The result should be Bernoulli with p=0.5 when a and b are small.
numpy fixed this problem around March 2015 https://github.com/numpy/numpy/pull/5858 It was related to a Dirichlett distribution bug that is still open. https://github.com/numpy/numpy/issues/5851
The purpose of while loop is not clear to me
In terms of test, numpy
code only check if there is nan
generated. See numpy #5858 above.
http://savannah.gnu.org/bugs/?47646