_num_uniform off by one