def random_numbers(n, sum_to):
    values = [0] + [random.randint(0, sum_to) for i in range(n - 1)] + [sum_to
        ]
values.sort()
intervals = [(values[i + 1] - values[i]) for i in range(len(values) - 1)]
return intervals
if __name__ == '__main__':
    pass
Non biased return a list of n random positive numbers (>=0) so that their sum == total_sum