Write a script to simulate the rolling of two dice. The script should use Math.random to roll the first die and again to roll the second die. The sum of the two values should then be calculated. [Note: Since each die can show an integer value from 1 to 6, the sum of the values will vary from 2 to 12, with 7 being the most frequent sum, and 2 and 12 the least frequent sums]. Your program should roll the dice 5000 times. Use a one-dimensional array to tally the number of times each possible sum appears. Display the results in an HTML5 table.
I have only the sum can anyone tell me how to get the sum of roll die form 2 till 12 in a table