simulation

随机模拟2

随机数 随机数检验 安装依赖库 sudo apt-get update && sudo apt-get install -y libgsl-dev libdieharder-dev 安装并加载 RDieHarder 包 if( ! "RDieHarder" %in% list.files(.libPaths()) ) install.packages('RDieHarder') ## Installing package into '/home/travis/R/Library' ## (as 'lib' is unspecified) library(RDieHarder) # 加载 RDieHarder [@R-RDieHarder] 由 Dirk Eddelbuettel 开发,将 Robert G. Brown 的工作介绍给 R 用户 if( ! "purrr" %in% list.files(.libPaths()) ) install.packages('purrr') library(purrr) dieharderGenerators() %>% head ## names id ## 1 borosh13 0 ## 2 cmrg 1 ## 3 coveyou 2 ## 4 fishman18 3 ## 5 fishman20 4 ## 6 fishman2x 5 dieharderTests() %>% head ## names id ## 1 diehard_birthdays 0 ## 2 diehard_operm5 1 ## 3 diehard_rank_32x32 2 ## 4 diehard_rank_6x8 3 ## 5 diehard_bitstream 4 ## 6 diehard_opso 5 set.