Lines Matching full:random
6 instructions. It generates a function with a random sequnece of shufflevectors
18 import random
236 # Returns a random vector type to be tested
264 num_elts = random.choice(range(2, 65))
268 if random.randint(0, 1):
270 width = random.choice(int_elt_widths)
273 width = random.choice(float_elt_widths)
283 if SHUF_UNDEF_POS / ty.elt_num > random.random():
286 mask.append(random.randint(0, ty.elt_num * 2 - 1))
296 if SEL_UNDEF_POS / ty.elt_num > random.random():
299 mask.append(random.randint(0, 1))
313 [idx0, idx1] = sorted(random.sample(range(len(inputs)), 2))
326 if random.random() < ADD_SEL_POS:
327 # Either blending with a random Value or with an all-zero vector.
328 if random.random() < MERGE_SEL_POS:
329 op2 = random.choice(inputs)
374 (default: random)""",
380 help="Choose specific number of vector elements to be tested. (default: random)",
394 random.seed(args.seed)
396 inputs = gen_inputs(ty, random.randint(args.min_num_inputs, args.max_num_inputs))