Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Rectangle;
- import java.util.Random;
- public class ch2Review
- {
- public static void main(String[] args)
- {
- Random rand = new Random();
- int rollTheDie = rand.nextInt(7);
- if(rollTheDie == 0)
- {
- rollTheDie = rand.nextInt(7);
- }
- System.out.println(rollTheDie);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement