Shutterfly Interview Question

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