[R] runif with condition

Sarah Goslee sarah.goslee at gmail.com
Mon Jan 9 16:27:33 CET 2012


On Mon, Jan 9, 2012 at 10:06 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:
> Hi
> I want to generate 4 random number which sum up to 100 always
>
> Please help

This sounds like homework.

But you might want to search rseek.org for information on random
numbers, and to ponder the mysteries of addition and division.

Sarah


-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-help mailing list