Fixed bug in NDRange for uniform random number generator