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.
I tried using the random module but can't seem to figure anything out, as I tried something like this
import random
import math
inf=math.inf
x=15
random.randint(x,inf)
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
import random
import math
inf=math.inf
x=15
random.uniform(x,inf)
This should work because the uniform function works with floating points, but it just ends up returning infinity every time.
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?
I'm running Python 3.6.0b4 on OS X Yosemite