Showing posts with label random number program. Show all posts
Showing posts with label random number program. Show all posts

Thursday, June 4, 2020

Write a program in java to show the how to generate Random Number in any program?

1)  Write a program in java to show the how to generate Random Number in any program?

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

 jhvghvgk ;nkjn ,nkjhj