/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_random.py | 268 self.assertTrue(0 <= self.gen.getrandbits(k) < 2**k) 271 getbits = self.gen.getrandbits 279 self.assertRaises(TypeError, self.gen.getrandbits) 280 self.assertRaises(TypeError, self.gen.getrandbits, 1, 2) 281 self.assertRaises(ValueError, self.gen.getrandbits, 0) 282 self.assertRaises(ValueError, self.gen.getrandbits, -1) 283 self.assertRaises(TypeError, self.gen.getrandbits, 10.1) 420 self.assertEqual(self.gen.getrandbits(100), 424 self.assertTrue(0 <= self.gen.getrandbits(k) < 2**k) 427 getbits = self.gen.getrandbits [all...] |
test_zlib.py | 107 data = ''.join([binascii.a2b_hex(fmt % random.getrandbits(8 * _1M))
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_random.py | 268 self.assertTrue(0 <= self.gen.getrandbits(k) < 2**k) 271 getbits = self.gen.getrandbits 279 self.assertRaises(TypeError, self.gen.getrandbits) 280 self.assertRaises(TypeError, self.gen.getrandbits, 1, 2) 281 self.assertRaises(ValueError, self.gen.getrandbits, 0) 282 self.assertRaises(ValueError, self.gen.getrandbits, -1) 283 self.assertRaises(TypeError, self.gen.getrandbits, 10.1) 420 self.assertEqual(self.gen.getrandbits(100), 424 self.assertTrue(0 <= self.gen.getrandbits(k) < 2**k) 427 getbits = self.gen.getrandbits [all...] |
test_zlib.py | 107 data = ''.join([binascii.a2b_hex(fmt % random.getrandbits(8 * _1M))
|
/external/chromium_org/chrome/test/pyautolib/ |
chrome_driver_factory.py | 49 channel_id = 'testing' + hex(random.getrandbits(20 * 4))[2:-1]
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
random.py | 55 "getstate","setstate","jumpahead", "WichmannHill", "getrandbits", 84 Optionally, implement a getrandbits() method so that randrange() can cover 252 getrandbits = self.getrandbits 256 # Only call self.getrandbits if the original random() builtin method 257 # has not been overridden or if a new getrandbits() was supplied. 259 if type(self.random) is _BuiltinMethod or type(getrandbits) is _Method: 261 r = getrandbits(k) 263 r = getrandbits(k) 811 def getrandbits(self, k) member in class:SystemRandom 901 getrandbits = _inst.getrandbits variable [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
random.py | 55 "getstate","setstate","jumpahead", "WichmannHill", "getrandbits", 84 Optionally, implement a getrandbits() method so that randrange() can cover 252 getrandbits = self.getrandbits 256 # Only call self.getrandbits if the original random() builtin method 257 # has not been overridden or if a new getrandbits() was supplied. 259 if type(self.random) is _BuiltinMethod or type(getrandbits) is _Method: 261 r = getrandbits(k) 263 r = getrandbits(k) 811 def getrandbits(self, k) member in class:SystemRandom 901 getrandbits = _inst.getrandbits variable [all...] |