Uh, you'll have to provide the algorithim if you're hoping for a function, unless you want us to derive it from what you've given, which, incidentally, contradicts itself:

> For instance if there are only 3 players paid out of X players in a tournament:

>

> 1st: 50%

> 2nd: 35%

> 3rd: 15%

>

> 3 => array (50, 30, 20),

> For instance if there are only 3 players paid out of X players in a tournament:

>

> 1st: 50%

> 2nd: 35%

> 3rd: 15%

>

> 3 => array (50, 30, 20),