CODE
<?php
$time = rand(1000000000, 9999999999);
$no_hash = $time.rand(1,100).rand(1,10000).rand(1,10000000);
$hashe = hash('sha256', $no_hash);
echo"$hashe";
echo">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>";
$server_seed = "$hashe";
$lotto = "4527175882";
$round_id = "809403";
$hash = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id);
$roll = hexdec(substr($hash, 0, 8)) % 15;
echo "Runda1 = $roll ";
$round_id2 = "809404";
$hash2 = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id2);
$roll2 = hexdec(substr($hash2, 0, 8)) % 15;
echo "Runda2 = $roll2 ";
$round_id3 = "809405";
$hash3 = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id3);
$roll3 = hexdec(substr($hash3, 0, 8)) % 15;
echo "Runda3 = $roll3 ";
$round_id4 = "809406";
$hash4 = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id4);
$roll4 = hexdec(substr($hash4, 0, 8)) % 15;
echo "Runda4 = $roll4 ";
$round_id5 = "809407";
$hash5 = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id5);
$roll5 = hexdec(substr($hash5, 0, 8)) % 15;
echo "Runda5 = $roll5 ";
$round_id6 = "809408";
$hash6 = hash("sha256", $server_seed . "-" . $lotto . "-" . $round_id6);
$roll6 = hexdec(substr($hash6, 0, 8)) % 15;
echo "Runda6 = $roll6
";
if($roll == 6)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}
if($roll2 == 14)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}
if($roll3 == 11)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}
if($roll4 == 7)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}
if($roll5 == 4)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}
if($roll6 == 4)
{
echo 'TAK
';
}
else
{
echo 'NIE
';
}