Codepadma
Play with Codes
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Ads Inside Post
No comments:
Post a Comment