condition:
Total number of winners
demand:
generate a set of rankings based on the total number of winners, which adds up to 100% (the percentage of people x in each ranking)
example as shown in the figure:
the number of winners is 50. A set of rankings are generated, followed by the percentage of the ranking, and then the corresponding bonus
, the higher the ranking, the greater the percentage of the bonus, that is, the more money the br > ranking is randomly generated. I can write it out. But to ensure that the latter percentage is getting smaller and smaller and add up to 100, it will be difficult for me
I don"t know how to put forward a common factor or more to generate
and ask the bosses to give me some advice!