Discrete uniform distribution

Hi, stan users,

I wonder if there is a discrete uniform distribution in stan. If not, how to build it?


Not sure if this is helpful, because the context is not clear.
Anyhow, you could use the categorical distribution:

or the Dirichlet distribution for the multivariate case:

These are great. Many thanks for your reply.