Monty Hall problem: Difference between revisions
m
→{{header|R}}: nonsense: apply functions are not faster than a for loop, they have basically the same problem: not vectorized, i.e. one function call per element.
m (→{{header|Picat}}: Added {{out}}) |
m (→{{header|R}}: nonsense: apply functions are not faster than a for loop, they have basically the same problem: not vectorized, i.e. one function call per element.) |
||
Line 3,708:
=={{header|R}}==
<lang rsplus>
N <- 10000 # trials
true_answers <- sample(1:3, N, replace=TRUE)
|