1 / 3
amogtech
2 / 3
mhk
3 / 3
ccg


<?php
if(isset($_POST['roll'])){
 $rand = rand(000, 999);
 echo 'You rolled a '.$rand.'.';
}

?>

<form action = "rand.php" method = "POST">
<input type = "submit" name = "roll" value = "Roll a Dice">
</form>


Share On: