Maybe you thought the binomial distribution? see ?rbinom
best, kd ________________________________________ Feladó: r-help-boun...@r-project.org [r-help-boun...@r-project.org] ; meghatalmazó: Rolf Turner [r.tur...@auckland.ac.nz] Küldve: 2014. május 5. 9:27 To: Ragia Ibrahim Cc: r-help@r-project.org Tárgy: Re: [R] uniform number On 05/05/14 17:05, Ragia Ibrahim wrote: > > Dear group, > How to generate uniform probability choosing p to be 2% and 5%, in separate > trials for 100 times. No idea WTF you are talking about. Can you formulate a question that is comprehensible to the human mind? cheers, Rolf Turner ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.