Domanda di colloquio di Shutterfly

How would you design a backgammon game? How would you implement the die roll?