Question: PHP Dice Rolling Simulator This program is for PHP only and needs to be hard coded into PHP I need to write a program that

PHP Dice Rolling Simulator

This program is for PHP only and needs to be hard coded into PHP

I need to write a program that simulates rolling a 6 sided dice, and when ran it will randomly choose a number betwen 1-6. I need to pick the amount of rolls I want to perform (100, 200, 500) and include a function that will randomly grab a number in that range as well as return the value and storie it in an array

If I have my program print out 100 rolls it will need to print 10 rows of 10 numbers, and if I were to choose 300 rolls it be 30 rows of 10.

Finally I need to compute the number of each 1-6 generated and print it below the chart.

An Example Would Look Like:

4 5 1 6 5 6 2 2 3 2

5 4 1 6 6 2 3 6 4 5

6 4 3 6 1 3 3 1 6 5

3 1 4 4 6 2 2 4 2 5

5 2 1 5 3 6 5 4 5 6

1 1 4 2 1 1 4 3 5 4

4 4 2 4 4 2 1 2 3 3

6 4 3 4 4 6 1 1 5 2

6 1 2 5 2 1 4 3 4 1

6 1 2 5 5 5 3 6 4 1

Total:

Thank you for all help, I really appreciate it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!