how to generate 100 random numbers in a given range in nimpy code example Example: get n random numbers from x to y python import random random.sample(range(31), 10)