title: Using do.call to call a list of functions
body: <p>I am having trouble figuring out how to use <code>do.call</code> to call and run a list of functions.</p>
  
  <p>for example:</p>
  
  <pre><code>make.draw = function(i){i;function()runif(i)}
  function.list = list()
  for (i in 1:3) function.list[[i]] = make.draw(i)
  </code></pre>
  
  <p>will result in </p>
  
  <pre><code>&gt; function.list[[1]]()
   [1] 0.2996515
  &gt; function.list[[2]]()
   [1] 0.7276203 0.4704813
  &gt; function.list[[3]]()
   [1] 0.9092999 0.7307774 0.4647443
  </code></pre>
  
  <p>what I want to do is create a function that calls all three functions in the list at one go. from what I understand <code>as.call()</code> can be used to do this but I am having trouble connecting the dots and getting 6 uniform random draws from <code>function.list</code>. </p>