diff --git a/tutorials/r/example.C b/tutorials/r/example.C index 65a2291cc23b1..e73f5a6a0cf14 100644 --- a/tutorials/r/example.C +++ b/tutorials/r/example.C @@ -22,8 +22,8 @@ void example() { // compute standard deviation of 1000 vector normal numbers - double std_dev_r = r.Eval("sd(rnorm(1000))"); - std::vector v = r.Eval("rnorm(1000)"); + double std_dev_r = r.Eval("sd(rnorm(10000))"); + std::vector v = r.Eval("rnorm(10000)"); double std_dev_root = TMath::StdDev(v.begin(),v.end()); std::cout << "standard deviation from R = " << std_dev_r << std::endl; std::cout << "standard deviation from ROOT = " << std_dev_root << std::endl;