Skip to content
Prev 345909 / 398502 Next

Generate random numbers under constrain

(Hit send key by accident before I was finished ...)

Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
Clifford Stoll
On Sat, Nov 22, 2014 at 7:14 AM, Bert Gunter <bgunter at gene.com> wrote:
But anyway, one way is ... given n

 randnums <- function(n)
 {
u <- runif(n)
u/sum(u)
}

 Bert Gunter