📜  R 随机数 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:51:59.093000             🧑  作者: Mango

代码示例3
> rnorm(1)    # generates 1 random number
[1] 1.072712
> rnorm(3)    # generates 3 random number
[1] -1.1383656  0.2016713 -0.4602043
> rnorm(3, mean=10, sd=2)    # provide our own mean and standard deviation
[1]  9.856933  9.024286 10.822507