Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**Author:Paige Hill
- * s5060971
- * week 20 task3
- * this program is part of the craps game - this is the dice variable
- */
- import java.util.Random;
- public class Dice {
- int faceValue;
- public void roll (){
- Random rand = new Random();
- faceValue = rand.nextInt(6)+ 1;
- }
- public int getFaceValue(){
- return faceValue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement