Petr Klasterecky wrote: > You need to specify what 'random' means. If you have any numbers, you > can always make them add-up to 1: > x <- rnorm(100) #runif(100), rpois(100) etc. > x <- x/sum(x) > sum(x)
I see a slight problem that may occur with dividing by sum(x) in certain cases.... Barry ______________________________________________ R-help@stat.math.ethz.ch 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.