Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. /**Author:Paige Hill
  3. * s5060971
  4. * week 20 task3
  5. * this program is part of the craps game - this is the dice variable
  6. */
  7. import java.util.Random;
  8.  
  9. public class Dice {
  10. int faceValue;
  11.  
  12. public void roll (){
  13. Random rand = new Random();
  14. faceValue = rand.nextInt(6)+ 1;
  15.  
  16. }
  17. public int getFaceValue(){
  18. return faceValue;
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement