import random
import math


def get_random_percents(number):
    """
    retruns a list of n random percents that will sum to 100
    """
    tanks = []
    total = 0
    for _ in range(number):
        num = random.randint(1, 10)
        total += num
        tanks.append(num)
    
    percents = []
    for tank in tanks:
        percents.append(math.floor(100 * tank / total))
    
    dif = 100 - sum(percents)
    
    if dif != 0:
        percents[random.randint(0, len(percents)-1)] += dif
    
    return percents