Advertisement
nigu

EsercizioRandom

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