>sd</span> <span class='kw'>=</span> <span class='fu'>runif</span>(<span class='fl'>1</span>))
  <span class='no'>reward</span> <span class='kw'>=</span> <span class='fu'>rnorm</span>(<span class='fl'>1</span>, <span class='no'>state</span><span class='kw'>[[</span><span class='fl'>1</span>]], <span class='no'>state</span><span class='kw'>[[</span><span class='fl'>2</span>]])
  <span class='no'>done</span> <span class='kw'>=</span> <span class='fl'>FALSE</span>
  <span class='fu'>list</span>(<span class='no