Hans Ekbrand wrote:
I want 100 integers. Each integer, x, can be in the range 1 =< x => 10.

Does the following code give 1 and 10 the same chances to be selected as
2:8?

round(runif(100, min = 1, max = 10))

If you just want to sample integers, use ?sample

______________________________________________
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.

Reply via email to