This algorithm allocates random percentages to each item in a list where the sum of the percentages equals 100%.
One example where this is useful is portfolio optimization where the many hypothetical portfolios are generated to find the optimal portfolio allocation for each level of risk. There are many other practical uses.
An unlimited number of items can be used as inputs for this algorithm. There is also a free version that limits the number of inputs to 10 listed here: https://algorithmia.com/algorithms/chrisrobbins157/RandomAllocator