Searched defs:random (Results 1 - 9 of 9) sorted by relevance
/pkg/src/modules/client/transport/ |
H A D | mdetect.py | 27 import random namespace 62 iterlst = random.sample(range(listlen), min(listlen, 5))
|
H A D | stats.py | 31 import random namespace 403 a random term. Two successive calls to this function 484 int(random.gauss(0, Crand_max)) - \
|
/pkg/src/tests/cli/ |
H A D | t_pkg_image_update.py | 34 import random namespace 341 random.seed() 344 facet = facet_fmt.format(random.randint(0, facet_max))
|
H A D | t_pkg_nasty.py | 35 import random namespace 75 s += random.choice("\n\n\n\nabcdefghijklmnopqrstuvwxyz"
|
H A D | t_pkg_history.py | 34 import random namespace 400 # record timestamp and expected result for 3 random, 409 for ts in random.sample(keys, 3): 469 random.randint(0, len(entries) - 1)] 479 # verify a random range taken from the history is correct 483 # get two random indices from our list of timestamps 490 start_ts = timestamps[random.randint(0, last_index)] 492 random.randint(timestamps.index(start_ts),
|
/pkg/src/tests/api/ |
H A D | t_async_rpc.py | 34 import random namespace 236 time.sleep(random.randint(0, 1)) 239 if random.randint(0, 1) == 1:
|
/pkg/src/util/qual-simulator/ |
H A D | depot.py | 31 import random namespace 37 # against a random float [0, 1). A larger number means errors occur more 64 # Speed is random. 156 return size / random.gauss(self.speed, self.speed / 4) 162 random.gauss(self.speed, self.speed / 4) 169 if random.uniform(0., 1.) < 0.05: 173 random.gauss(self.speed, self.speed / 4)) 182 size = random.randint(1, 1000) * 1024 189 if random.random() < conn_choos [all...] |
/pkg/src/modules/server/ |
H A D | depot.py | 50 import random namespace 1494 roll = random.randint(0, 10) 1497 if random.randint(0, 1) == 1: 1505 response.body = random.choice(['', 1570 # want to return an error at random to the client. Errors 1625 roll = random.randint(1, maxroll) 1644 code = random.choice(self.errlist) 1681 response.headers["X-Ipkg-Error"] = random.choice(["ENT", 1706 random.randint(0, 10) <= 1: 1717 random [all...] |
/pkg/src/modules/client/ |
H A D | progress.py | 3172 import random namespace 3226 r = random.randint(20, 100) 3267 # invent a list of random download chunks. 3270 filesize = random.randint(0, filesizemax) 3274 random.randint(0, hunkmax)) 3352 r = random.randint(5, 30)
|
Completed in 883 milliseconds