<div dir="ltr">Hello,<div><br><div style>Four months ago, I reported a bug in gaussian-random when either optional parameter min or max is nil but not both are nil. The docstring has been modified since then but the code is still the same and the bug remains. In such a situation it is possible to enter an infinite loop.</div>
</div><div style><br></div><div style>This is easy to demonstrate by the call (gaussian-random 0 nil). You may need to repeat the call a few times because the bug depends on the values returned by the first call to the local function gauss.  An infinite loop will occur if gauss returns a negative number. </div>
<div style><br></div><div style>I have attached a patch which fixes the bug.</div><div style><br></div><div style>Sincerely,</div><div style><br></div><div style>Andy Peterson</div><div style><br></div></div>