[R] generate random numeric

Jeff Newmiller jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Fri Oct 29 15:49:36 CEST 2021


It is difficult to do "truly random" number generation with computers, but fortunately number sequences that appear random but progress consistently from an initial seed value (?set.seed) are actually much more useful for analysis purposes than true randomness is.

On October 28, 2021 11:39:07 PM PDT, Ken Peng <ken using pubbox.net> wrote:
>I saw runif(1) can generate a random num, is this the true random?
>
>> runif(1)
>[1] 0.8945383
>
>What's the other better method?
>
>Thank you.
>
>	[[alternative HTML version deleted]]
>
>______________________________________________
>R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.

-- 
Sent from my phone. Please excuse my brevity.



More information about the R-help mailing list