Jump to content

Slots Question!


DJTim666

Recommended Posts

<?php
$ranNumber = rand(1, 1000000);
$ranNumber2 = rand(1, 1000000);
$ranNumber3 = rand(1, 1000000);
$ranNumber4 = rand(1, 1000000);

$ranNumberWin = "<font color=green><b>$ranNumber</b></font> -- <font 

color=blue><b>$ranNumber2</b></font> -- <font color=orange><b>$ranNumber3</b></font> -- <font color=brown><b>$ranNumber4</b></font>";

$winningNumbers = "<font color=green><b>445572</b></font> -- <font color=blue><b>982612</b></font> -- 

<font color=orange><b>72623</b></font> -- <font color=brown><b>109563</b></font>";
?>

 

I want to make it so that the colours of the random numbers dont matter. They way they are set up right now, is making it so that the colours have to be the same as the winning numbers colour. Any help is appreciated.

 

--

DJ

Link to comment
https://forums.phpfreaks.com/topic/54884-slots-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.