Advertisement
joseleonweb

Untitled

Jan 29th, 2021
556
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. public class RandomExample {
  4.  
  5.     public static void main(String[] args) {
  6.         Random rndNum = new Random();
  7.         int randomNum = rndNum.nextInt(100);
  8.         System.out.println("Random Number: " + randomNum);
  9.     }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement