Advertisement
ffpaladin

Random DIce

Apr 7th, 2014
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.19 KB | None | 0 0
  1. import java.util.Random;
  2.  
  3. public class DiceRoll {
  4.    
  5.     public static void main(String[] args){
  6.        
  7.         Random r = new Random();
  8.         System.out.println("Roll " + r.nextInt(6));        
  9.        
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement