Skip to content
Prev 281789 / 398498 Next

runif with condition

On Jan 9, 2012, at 10:06 AM, arunkumar1111 wrote:

            
"Random" plus condition == "non-random"

Perhaps you want 3 "random" numbers conjoined to the difference of  
their sum and 100? Or perhaps you want 4 "random" numbers multiplied  
by 100/sum(.)

(In either case you will not be getting "4 random numbers".)