[R] Generate random numbers under constrain
gunter.berton at gene.com
Sat Nov 22 16:14:53 CET 2014
Well, if their sum must be < 1 they ain't random...
But anyway... given n
randnums <- function(n)
Genentech Nonclinical Biostatistics
"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
On Sat, Nov 22, 2014 at 6:29 AM, Ragia Ibrahim <ragia11 at hotmail.com> wrote:
> Dear all,
> I use R 3.1.1 for Windows.
> kindly how can I generate n number of random numbers with probability from [0,1]
> and their sum must not be more than one
> thanks in advance
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help