Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {
    public static void main(String[] args) {
        int n1 = 1;
        int n2 = 100;
        double Random;

        Random = n2 + (Math.random() * (n1 - n2));
        System.out.println("Your random number is: " + Random);
    }
}