Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package randomnumbergenerator;
- import java.util.Random;
- public class RandomNumberGenerator {
- public static void main(String[] args) {
- Random rand = new Random();
- int n = rand.nextInt(50) + 1;
- System.out.println(n);
- }
- }
Add Comment
Please, Sign In to add comment