我有一个单词列表。
count=100
list = ['apple','orange','mango']
使用随机函数对上述计数,是否可以使40%的时间选择苹果,30%的时间选择橙子,30%的时间选择芒果?
例如:
for the count=100, 40 times apple, 30 times orange and 30 times mango.
这个选择必须是随机的