I'm using PHP rand function to generate a number between 1 and 6 and doing it three times like this:
echo rand(1, 6);
echo "<br>";
echo rand(1, 6);
echo "<br>";
echo rand(1, 6);
echo "<br>";
Is there a way to prevent the same number from appearing in any of the 3 random numbers?