A generalization of the Dirichlet distribution