Bernardo Rangel Tura wrote:

> I think your routine need a little fix
> 
> x <- rlnorm(1e6,meanlog=1,sdlog=1) ## pick any parameters you like
> y <- round((x-min(x)/diff(range(x)))*199999+1)
> 
> What you think?

  Yes.

______________________________________________
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