Friday, October 18, 2013

Java Program to generate a random number with output

 Code:-


class Test
{

    public static void main(String args[])
    {
       
        double a = Math.random();
        System.out.println(a);
    }
}

Output:-


No comments:

Post a Comment

Ads Inside Post