title: How do I use Python to generate a random number that is greater than a specified one?
body: <p>By this I mean I need Python to generate any random number under one condition, it must be greater than the user defined number (lets say "x"), in other words it would be like saying x>num>infinity.</p>
  
  <p>I tried using the random module but can't seem to figure anything out, as I tried something like this</p>
  
  <pre><code>import random
  import math
  inf=math.inf
  x=15
  random.randint(x,inf)
  </code></pre>
  
  <p>But that doesn't work because infinity is registered as a floating point number and the randint function only works with integers. I also tried something like this</p>
  
  <pre><code>import random
  import math
  inf=math.inf
  x=15
  random.uniform(x,inf)
  </code></pre>
  
  <p>This should work because the uniform function works with floating points, but it just ends up returning infinity every time.</p>
  
  <p>This would mean that I need someway to get this done without using infinity (or math.inf) within my range, I just need the range to have a minimum (x) and no maximum at all. Any suggestions? </p>
  
  <p><em>I'm running Python 3.6.0b4 on OS X Yosemite</em></p>