Fix #6804

floor(2^31-1*runif(1)) was always returning the value 2147483647. It is now floor(runif(1, min=0, max=2^31-1))