Coding challenge

The function math.random(1,6) will return a random number between 1 and 6. Write some code that uses this function twice, to simulate the rolling of two dice. What is the probability that a two-dice roll will result in the same number showing on both dice?

Type your code here:

Lua reference

See your results here: