title: Trying to return integer with math.random, lua
body: <p>I made this code:</p>
  
  <pre><code>myHero = GetMyHero()
  
  a = math.random()
  
  function OnDraw()
      if (myHero.health &lt; 2000) then
          DrawText(a, 30, 600, 200, 0xFFFF0000)
      end
  end
  </code></pre>
  
  <p><code>math.random()</code> is giving floats and I need an integer.  How can I get an integer?</p>
  
  <hr>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>As it turns out, <code>math.random(upper)</code> and <code>(x, y)</code> give integers.</p>