micher43

E2.11

Sep 25th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.24 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3.  
  4. public class DieSimulator {
  5.  
  6.     public static void main(String[] args) {
  7.         Random dieNumber = new Random();
  8.         int randomNumber = dieNumber.nextInt(6);
  9.         System.out.println(randomNumber + 1);
  10.        
  11.        
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment