Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        Random rand = new Random();
        for (int i = 1; i <= 100; i++) {
            int randomNum = rand.nextInt((999 - 100) + 1) + 100;
            System.out.println(randomNum);
        }
    }
}