Hello all: Is it possible to generate quasi-random positive numbers, given a standard deviation and mean? I need all positive values to have the same probability of selection (uniform distribution). Something like:
runif(10, min = 0, max = 100) This way I'm generating random positive numbers from a uniform distribution. However, using runif I can't previously select SD and mean (as in rnorm). Alternatively, I'm able to generate a list of quasi-random numbers given a SD and a mean. b <- (sqrt(SD^2*12)+(MEAN*2))/2 a <- (MEAN*2) - b x1 <- runif(N,a,b) However, negative values might be included, since "a" can assume a negative value. Any help? Thanks, Frederico [[alternative HTML version deleted]] ______________________________________________ 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.