To simulate rolling a die, use the built-in PHP function named rand($min, $max) to generate a
random number between 1 and 6, 1 being Face 1, 2 being Face 2, and so on. The following
statement generates a random number between 1 and 6 and stores it in the variable called
$face = rand(1, 6);
16. Use a conditional structure (IF or SWITCH) to increment frequency for each side of the die
occurred. For example, if the value of $face is 1, increment $frequence1 by 1.
17. Use a loop structure (FOR, WHILE, or DO … WHILE) to repeatedly execute the PHP statements in
the last two steps 5000 times.
18. Below the

head, create a table to display die faces and their frequencies occurred during
the 5000 times of rolls.
19. Below the table, add a refresh button.

20. Add CSS to style the table.