Guest User

Untitled

a guest
May 23rd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. public class Dice {
  2. int noofdice = 7;
  3. public static void main(String[] args) {
  4. int noofdice = 7;
  5. System.out.println("Rolling Dice....");
  6. for(int i=0; i<noofdice; i++){
  7. int rolled = (int) ((Math.random() * 6) + 1);
  8. System.out.println(rolled);
  9. }
  10. }
  11. }
Add Comment
Please, Sign In to add comment