[R] random number 0-1

gb gb at stat.umu.se
Thu Apr 20 12:07:37 CEST 2000


> i'm looking for the procedure to generate a random number between 0-1.
> Try rnorm() but can't get to do generate between 0-1

The distributions restricted to (0, 1) I know of in R are the beta 
distributions. You have 'rbeta' and 'runif'. 
> 
> thanks(i'm sur it's easy)
> 
> --
> Nicolas Baurin
> 
> Doctorant
> Institut de Chimie Organique et Analytique, UPRES-A 6005
> Université d'Orléans, BP 6759
> 45067 ORLEANS Cedex 2, France
> Tel: (33+) 2 38 49 45 77

Göran

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list