Shutterfly interview question

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