Java Program To Print Random Number

Wirte a Java Program to print Random Number .


[java]

class Random_Number{

public static void main(String args[]){

double a = (int) (Math.random() * 1000);

System.out.print(a);

}
}

[/java]

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

Your email address will not be published. Required fields are marked *

*

Time limit is exhausted. Please reload CAPTCHA.