Fix the random_integer function.

The random_integer function given was broken. When looping through
prob_distrib, it started at index 1.  It needs to start at index 0.