I\'m trying to generate in python random floats in the range of [0.8,0.9] , but unfortanetly all the tools i found could only generate randoms in the range of [a,b) for floa
If it really matters, then you can do this:
def uniform_closed(a, b): while True: r = random.uniform(a, b + (b - a) * 0.01) if r <= b: return r