Fixed random_integer function. It checked the wrong values of prob_distrib, it started at index 1 instead of index 0.