I don't understand: do you need random choice with replacement or without replacement?
Without replacement (unique choices):
>>> food_we_like=['spam', 'ham', 'eggs', 'bacon']
>>> random.sample(food_we_like, 2)
['ham', 'bacon']
>>> random.sample(food_we_like, 5) # list has 4 items, we want 5
/.../
ValueError: Sample larger than population or is negative
With replacement (choices may repeat):
>>> random.choices(food_we_like, k=2)
['eggs', 'eggs']
>>> random.choices(food_we_like, k=5) # we can have 5 choices from list of 4 items
['bacon', 'spam', 'eggs', 'spam', 'ham']
As one can see - it's easy to pass number of choices into both way of selection.