random module means that you can generate
import random print(random.decisions([i for i in range(1000)], ok=10))
This would possibly give us again one thing like:
[635, 450, 26, 829, 786, 563, 294, 586, 893, 953]
random.alternative takes a
sequence as a parameter and return a single random merchandise from it.
random.decisions takes a sequence as a parameter and returns a number of random objects from it. You may specify what number of random objects to return by populating the
ok= parameter, as above.