title: Selecting values from bounded normal distribution in NetLogo
body: <p>I'm trying to have NetLogo draw values from a bounded random normal distribution following the recommendation in a previous question in stackoverflow</p>
  
  <p><a href="https://stackoverflow.com/questions/20230685/netlogo-how-to-make-sure-a-variable-stays-in-a-defined-range/20233830#20233830">NetLogo : How to make sure a variable stays in a defined range?</a></p>
  
  <p>Specifically I'm asking the model to create a circular home range that varies in size according to empirical data</p>
  
  <pre><code>set homerange patches in-radius ((sqrt (( random-normal-in-bounds [ 54.4 35.8 19 151 ] * 1000000)/ pi))/ 100)
  
  to-report random-normal-in-bounds [mid dev mmin mmax]
    let result random-normal mid dev
    if result &lt; mmin or result &gt; mmax
      [ report random-normal-in-bounds mid dev mmin mmax ]
    report result
  end
  </code></pre>
  
  <p>However I keep getting the error that random-normal-in-bounds expected 4 inputs. I'm sure it's something silly I'm doing but it looks like 4 inputs (54.4, 35.8, 19, 151) to me. Any suggestions on what I'm doing wrong? Thanks in advance!</p>