On the posterior distribution of classes of random means