Hey,
I was bored, so I decided to prove, how easy it is to rig a dicing system on a gambling site. This can be used to control the "random" seed also, but it's way too complex maths for a drunken me.. Anyways, here comes the basics.
<?php
$number1 = rand(1, 50);
$number2 = rand(1, 50);
$number3 = rand(1, 26);
$number4 = rand(1, 26);
$final = $number1 + $number2;
$bet = rand(300, 500);
if ($bet >340) {
$final2 = $number3 + $number4;
}
?>
<html>
<head>
<title>Rigged dice</title>
<head>
<body>
<p>The actual number rolled: <?php echo $final; ?></p><br/>
<p>Rigged number, because bet is too high: <?php echo $final2; ?></p><br/>
<p>Bet (if over 340, then rigged number can not be higher than 52): <?php echo $bet; ?></p><br/>
<p></p><br/>
<p></p><br/>
</body>
</html>
To see what I mean, visit this site and refresh the page until the actual number (final1 and 2) are bigger than the rigged number. The rigged number kicks in when bet (generated randomly) is higher than 340. Thank-you.