Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace PointExercise
- {
- class Die
- {
- private Random rnd;
- private int num;
- public Die()
- {
- rnd = new Random();
- num = rnd.Next(1, 7);
- }
- public void Roll()
- {
- num = rnd.Next(1, 7);
- }
- public int getNum()
- {
- return num;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement