How to create random values given a restriction?

Thanks you both @jling and @Tamas_Papp for your aproaches, in all cases they were very useful to me, in particular I think I will lean towards the Dirichlet method of the distribution package.