I don't know if anyone is interested, but I modified the base script to allow for weighted rewards.
For the creation of the rewards array, I replaced:// List of rewards in satoshi, 1 satoshi = 0.00000001 BTC.
$rewards = array(
300,
200,
100,
75,
50,
25,
10
};
With:// Each reward entry is in the follwing format: array_fill(0,WEIGHT,REWARD) where WEIGHT is how frequently you want the REWARD to occur.
$rewards = array_merge(array_fill(0,1,500), array_fill(0,10,200), array_fill(0,100,150), array_fill(0,100,100), array_fill(0,50,75), array_fill(0,50,50), array_fill(0,25,25), array_fill(0,20,10));
For outputting the rewards array, I replaced: <?php foreach ($rewards as $reward): ?>
<h5 class="text-center"><?php echo htmlspecialchars($reward); ?> satoshi</h5>
<?php endforeach; ?>
With: <h5 class="text-center">
<?php
$weightCount = 1;
$weightArray = array();
$percentage = 0.0;
foreach ($rewards as $reward) {
if($rewardAmount != $reward) {
if($rewardAmount) {
$percentage = ($weightCount/count($rewards)) * 100;
echo number_format($percentage, 2, '.', ','), "%<br />\n";
}
$rewardAmount = $reward;
echo "$reward satoshi: ";
$weightArray[$reward] = $weightCount;
$weightCount = 1;
} else {
$weightCount++;
$weightArray[$reward] = $weightCount;
}
}
$percentage = ($weightCount/count($rewards)) * 100;
echo number_format($percentage, 2, '.', ','), "%<br />\n";
?>
</h5>
Which outputs the following, using the above example for the rewards array: 500 satoshi: 0.28%
200 satoshi: 2.81%
150 satoshi: 28.09%
100 satoshi: 28.09%
75 satoshi: 14.04%
50 satoshi: 14.04%
25 satoshi: 7.02%
10 satoshi: 5.62%
I hope this helps anyone interested in doing the same thing. There might be a more elegant way to do this, if you think of one, please let me know.
Thanks!