/* * Created by SharpDevelop. * User: allann * Date: 31-10-2004 * Time: 17:39 * */ using System; namespace DiceGame01 { /// /// Description of Die. /// public class Die { public Die() { random = new Random(); Roll(); } public void Roll() { faceValue = random.Next(6) + 1; } public int GetFaceValue() { return faceValue; } private static Random random; private int faceValue; } }