Hello,

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.

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. 

I have attached a patch which fixes the bug.

Sincerely,

Andy Peterson