Results 1 to 1 of 1
Thread: Math.Random
-
Math.Random
Math.Random is used to produce random numbers. Review the code sample below:
Java Code:// producting random number int he range between 0 - 10 System.out.println(Math.random()*10); // producting random number int he range between 0 - 100 System.out.println(Math.random()*100); // producting random number int he range between 0 - 1000 System.out.println(Math.random()*1000); // producting random number int he range between 0 – 10000 System.out.println(Math.random()*10000);
Similar Threads
-
Math Class
By ritwik07 in forum New To JavaReplies: 2Last Post: 09-14-2009, 04:06 PM -
random numbers without random class`
By carlos123 in forum New To JavaReplies: 4Last Post: 01-17-2008, 10:44 PM -
Help with math in java
By fernando in forum New To JavaReplies: 1Last Post: 08-06-2007, 06:05 AM -
math.random function help
By katie in forum New To JavaReplies: 2Last Post: 08-06-2007, 03:31 AM -
Date math
By orchid in forum New To JavaReplies: 2Last Post: 04-18-2007, 07:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks