Java tutorial
/* * 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()); } }