If you read anything from my last question you know I am working on a dice roller and I am on to the next step.
Stage one was just trying to figure out how to get a random, and I finally got the to work. I can now roll and sided die i want once and it prints the result...
Stage two is getting the program to rolls multiples of the same die and print all the results. I thought I could do it with a "while" statement and this is what I got from the server:
"500 Internal Server Error:
The server encountered an internal error or misconfiguration and was unable to complete your request."
I have no idea what this means. I am trying to do this all one step at a time and get it right and I am trying to do this on my own. I only questions after I have exhausted all, what I think, are my only options. Please do not think I am trying to have you all build me a program for free :)
Here's what I have for stage two that is getting me the error, any help you all could give would be great.
<?
$i=$_POST["hmany"];
while($i>=1);
{
$rand=mt_rand(1,$_POST["dice"]);
echo "You rolled a $rand";
$i--;
}
?>