/*************************************************************************
 *  Compilation:  javac RandomSequence.java
 *  Execution:    java RandomSequence N
 *
 *  Prints N real numbers between 0 and 1.
 *  More precisely, each random value r is in the range 0 <= r < 1.0,
 *  or in more mathematical terms, each r is in the half-open interval
 *  [0,1).
 *
 *  The number of values must be provided as a command-line argument.
 *  Example usage:
 *
 *  % java RandomSequence 5
 *  5
 *  0.16548
 *  0.62123
 *  0.63176
 *  0.41656
 *  0.46035
 *
 *************************************************************************/

public class RandomSequence { 

    public static void main (String [] args) {

        int nvals = Integer.parseInt(args[0]);

        for (int n = 0; n < nvals; n++) {
            System.out.println(Math.random());
        }
    }
}
