Possible Bug in DiscreteUniform?

Because you are using metropolis sampler on a discrete latent bounded variable, it sometimes purpose value that is outside of the support of the RV. Depends on the use case, it either get rejected because the value is invalid, or throws an error (if eg you are using the discrete variable to do indexing).