骰子游戏UML图与代码 public class Die { int FaceValue; public void roll() { Random rd = new Random(DateTime.Now.Second); FaceValue = rd.Next(1, 6); } public int getFaceValue() { return FaceValue; } } }