Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Dice {
- int noofdice = 7;
- public static void main(String[] args) {
- int noofdice = 7;
- System.out.println("Rolling Dice....");
- for(int i=0; i<noofdice; i++){
- int rolled = (int) ((Math.random() * 6) + 1);
- System.out.println(rolled);
- }
- }
- }
Add Comment
Please, Sign In to add comment