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);}}
This is a programming blog that covers the complete syllabus of ICSE computer science.it helps you to solve your java programming related doubts and queries.number programs, series programs, pattern programs, array programs, string programs, function programs, constructor programs, method overloading programs, constructor overloading programs, exceptional handling programs, inheritance programs.
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