Red-Pack-Amount-Generation Code to generate red pack amount Kind of WeChat Red Pack rules generate n numbers, and the sum m of the n numbers should be equal the totol red pack amount. try to split the sum m evenly for example: 10 people equally split $150.