MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

/*
 * Output:
 * 
 * 0.8102628210601169
 *  
 */

import java.util.Random;

public class MainClass {

    public static void main(String args[]) {
        Random rand = new Random();
        System.out.println(rand.nextDouble());
    }
}