import random def ratelist(total, rate): li = [] o = 'o' x = 'x' _rate = rate / 100 _count = total for i in range(1,_count): if i