I am trying to build a random number generator based on dice. Yes, I know there are ones out there but I am trying to do this whole programming thing for myself... I thought I had done it right but it keeps telling me "Warning: Division by zero" when I am not using any division, can anyone explain and give me some advice?
<?
srand(time());
$random = (rand()%$POST_number)+1*$POST_how+$POST_str+$POST_mod;
print("You just rolled a D6 and your roll is: $random");
?>
Forgive me, I am a bit new here so any other info needed I can give you