def test_03_randrange(self): r = urandom.randrange(100, 200, step=10) self.assertTrue(100 <= r <= 200, r) self.assertTrue(r % 10 == 0, r) r = urandom.randrange(100) self.assertTrue(r <= 100)
def test_03_randrange(self): r = urandom.randrange(100, 200, step=10) self.assertTrue(100<=r<=200, r) self.assertTrue(r % 10 == 0, r) r = urandom.randrange(100) self.assertTrue(r <= 100)