(self, a, b)
return a + (b-a) * self.random()
Get a random number in the range [a, b) or [a, b] depending on rounding.
Get a random number in the range [a, b) or [a, b] depending on rounding.
Get a random number in the range [ a b ) or [ a b ] depending on rounding .
def uniform(self, a, b):
        "Get a random number in the range [a, b) or [a, b] depending on rounding."
        return a + (b-a) * self.random()
def uniform ( self , a , b ) : return a + ( b - a ) * self . random ( )