how to return a list of 6 random numbers code example Example: n random numbers python >>> import random >>> random.sample(range(1, 100), 3) [77, 52, 45]