Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- public class RandomExample {
- public static void main(String[] args) {
- Random rndNum = new Random();
- int randomNum = rndNum.nextInt(100);
- System.out.println("Random Number: " + randomNum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement