Wednesday, January 28, 2015

RandomSeq.java in pgm



RandomSeq.java

public class RandomSeq 
{ 
 public static void main(String[] args) 
{
                        int N = Integer.parseInt(args[0]);
 
       for (int i = 0; i < N; i++) 
            {
            System.out.println(Math.random());
             }
    }
}

No comments:

Post a Comment