Bayesian inference using discrete uniform priors