📜  在分布 r 中生成数字 - 无论代码示例

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

代码示例2
> 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