在一个列表里面随机选择

from random import choice
choice([1,2,3,4,5])