Richard_Sekol

ex2.11

Sep 25th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import java.util.Random;
  2. public class ex211 {
  3.  
  4. public static void main(String[] args) {
  5. // TODO Auto-generated method stub
  6. Random rand = new Random();
  7. int pickedNumber = rand.nextInt(6) + 1;
  8. System.out.println("the number is " + pickedNumber);
  9. }
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment