I'm not sure if anyone has pointed it out, but binomial seems to have a bug:
You define switchflag within a if-else clause in line 881, but it needs to be defined outside it, since, after the clause, you write:
Line 935: if switchFlag
Did old versions of Matlab support use of variables outside what's meant to be their scope?

Most of this program seems pretty good. There's a bit of bug in the gamma code. The reference they cite has a different algorithm for alpha < 1 which is omitted in the code causing trouble, particularly if try and set alpha = 1/3.

dmirty larin

26 Jul 2005

Great and very useful work!

c m

17 May 2005

If I had confidence in the program it would be great.

I tried the program with poisson distribution help, i.e. randraw( 'po') but it produced an error message. See below.

Maybe the problem is similar to the binomial
distribution problem noted in the 4/14/05
change.

This is a great piece of work, but unless
there is confidence in the accuracy of the
program it is not very useful.

Here is the problem I encountered.
--------------------------------------
Input:
randraw( 'po')

The output is an error:
??? if h<=1 &&
Missing variable or function.
Syntax error...
On line 1799
--------------------------------------

Feng Sun

15 May 2005

Great work! Thank you very much for sharing this with us!

Anubhav Swami

27 Apr 2005

Comprehensive random variable generator. Excellent work.

Updates

6 Mar 2013

1.4.0.0

Updated comments

21 Nov 2012

1.1.0.0

Added BSD License;
New distributions are planned to be added to the generator in the near future;