Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- class Die{
- int dieValue;
- int rollDie(){
- Random rngForDie = new Random();
- dieValue=rngForDie.nextInt(6)+1;
- System.out.println("The Die rolled: "+dieValue);
- return dieValue;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement