There are no guarantees as to the quality of the random sequence produced. In the past, some implementations of rand() have had serious shortcomings in the randomness, distribution and period of the sequence produced (in one well-known example, the low-order bit simply alternated between 1 and 0 between calls).如果您对替代随机数生成器和计时感兴趣,请访问 Rcpp Gallery.If you are interested in alternate random number generators and timing, the Rcpp Gallery.一般来说,使用 R 提供的生成器,这些生成器具有出色的统计质量,并由 Rcpp 以标量和矢量化形式(Rcpp Sugar")提供.In general, use the generators provided by R which are of excellent statistical quality, and offered in both scalar and vectorised form ("Rcpp Sugar") by Rcpp. 这篇关于Rcpp 可以替换 R 中的 unif 函数吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 1403页,肝出来的.. 09-06 09:29