def _rand_float(self, space, float):
        random = self.random.random()
        max = Coerce.float(space, float)
        if max <= 0:
            raise space.error(space.w_ArgumentError, "invalid argument")
        return space.newfloat(random * max)
dataset/ETHPy150Open topazproject/topaz/topaz/objects/randomobject.py/W_RandomObject._rand_float/original