def generate_some(rnd: SimRandom): values = [rnd.integer(-37, 7342) for _ in range(1000)] strings = [rnd.string(10) for _ in range(10)] choice = rnd.choice(*values) sample = rnd.sample(values, 10) shuffled = rnd.shuffle(values) return values, strings, choice, sample, shuffled
def generate_some(rnd: SimRandom): integers = [rnd.integer(-37, 7342) for _ in range(1000)] floats = [rnd.float(0.1, 5.5) for _ in range(1000)] strings = [rnd.string(10) for _ in range(10)] choice = rnd.choice(*integers) sample = rnd.sample(integers, 10) shuffled = rnd.shuffle(integers) return integers, floats, strings, choice, sample, shuffled