[R] random between two values

Alfredo arios at ufl.edu
Thu Aug 6 17:10:29 CEST 2009


sample(c("a","b"))[1]

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of damien landais
Sent: Thursday, August 06, 2009 11:02 AM
To: R-help at r-project.org
Subject: [R] random between two values

Hi,
I would obtain a random value between two (for example between 40.15 and
56.58 I would have only one value).
I'm looking for a package/a function which could do this.
Could anybody help me please?

Cordialement
Damien Landais

______________________________________________
R-help at 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.




More information about the R-help mailing list