BUG FIX: use correct array bounds for small arrays of random numbers.

This affects all get_rand_arr_* subroutines.  Previously the last
element in the array was not set to a random number when internal store
of random numbers needed to be refilled.