
<span class='kw'>for</span> (<span class='no'>i</span> <span class='kw'>in</span> <span class='fu'>seq</span>(<span class='fl'>10L</span>)) {
  <span class='fu'>fn</span>(<span class='fu'>runif</span>(<span class='fl'>2</span>))
}
<span class='fu'>print</span>(<span class='fu'><a href='getNumberOfEvaluations.html'>getNumberOfEvaluations</a></span>(<span class='no'>fn</span>))</div><div class='output co'>#&gt; [1] 10</div><div class='input'>
<span class='co'># Here we pass a (2x5) matrix to the function wit