I was hoping to find a thread on this somewhere, but after a few hours of looking around without success, I decided to just post it here and hoping someone can help me out.
I'm trying to display the total number of possible scenarios for my fantasy baseball auction draft. Here are the details:
Players needed: 17
Budget: $205
Player's Value Range: $1 - $40 (no fractional units)
So I've been doing this manually, and I'm sure there has to be a simpler (automated) method to do this.
Here's an example of the output I'm looking to compute:
Scenario 1
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>Any help on this would be much appreciated!
I'm trying to display the total number of possible scenarios for my fantasy baseball auction draft. Here are the details:
Players needed: 17
Budget: $205
Player's Value Range: $1 - $40 (no fractional units)
So I've been doing this manually, and I'm sure there has to be a simpler (automated) method to do this.
Here's an example of the output I'm looking to compute:
Scenario 1
$40 | $0 | |
$39 | $0 | |
$38 | $0 | |
$37 | $0 | |
$36 | $0 | |
$35 | 1 | $35 |
$34 | $0 | |
$33 | $0 | |
$32 | $0 | |
$31 | $0 | |
$30 | 1 | $30 |
$29 | $0 | |
$28 | $0 | |
$27 | $0 | |
$26 | 1 | $26 |
$25 | $0 | |
$24 | $0 | |
$23 | $0 | |
$22 | 1 | $22 |
$21 | $0 | |
$20 | 2 | $40 |
$19 | $0 | |
$18 | $0 | |
$17 | $0 | |
$16 | 1 | $16 |
$15 | $0 | |
$14 | $0 | |
$13 | $0 | |
$12 | $0 | |
$11 | $0 | |
$10 | $0 | |
$9 | 1 | $9 |
$8 | 2 | $16 |
$7 | $0 | |
$6 | $0 | |
$5 | $0 | |
$4 | $0 | |
$3 | 1 | $3 |
$2 | 2 | $4 |
$1 | 4 | $4 |
Total | 17 | $205 |
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>