datacamp-logo

SOCK vs. FORK & random numbers

Below are the results from the previous exercise. The top-level list elements refer to the replicate() iteration, and the rows in each matrix refer to the foreach() results from each node.

# SOCK
[[1]]
[,1]       [,2]       [,3]
result.1 -2.275252 -0.6253932  0.6851843
result.2 -1.625408 -0.1659301 -1.3171027

[[2]]
[,1]       [,2]     [,3]
result.1  0.5162694 -0.1284328 0.879150
result.2 -1.3758571  1.2022050 1.268174

# FORK 
[[1]]
[,1]      [,2]      [,3]
result.1 0.8802133 -1.021916 0.1786894
result.2 0.8802133 -1.021916 0.1786894

[[2]]
[,1]       [,2]        [,3]
result.1 0.6504561 -0.3633403 -0.03202885
result.2 0.6504561 -0.3633403 -0.03202885

How do the results differ in terms of reproducibility?

Answer the question
50 XP
Possible Answers
  • press
  • press
  • press
  • press