title: How I can get an exact integer from floating point number?
body: <p>I need to use <code>random</code> function with integer argument that I get from operations that theoretically can return double. So I want use some cast/round for this purpose. I've tried </p>
  
  <pre><code>(random (round 10.0))
  (random (floor 10.0))
  </code></pre>
  
  <p>But it throws exceptions like </p>
  
  <pre><code>random: expects argument of type &lt;exact integer in [1, 4294967087] or pseudo-random-generator&gt;; given 10.0
  </code></pre>
  
  <p>I use DrRacket as interpreter.</p>