// There are many example in the internet, google it
// Use this piece of code in your program
import java.util.*; // import util package for random class
Random ranGen = new Random(); // you can also pass a seed parameter here
int ran = ranGen.nextInt(); // you can also pass an integer parameter here for upper limit of random numbers, lower limit is 0
System.out.println("The random number is " + ran); // for display the number
// - MS
__________________
"All my technical advices in this forum must be consulted with and approved by a local registered professional engineer before implementation" - Mohammed Samad (Linkedin Profile: http://www.linkedin.com/in/msamad)
"Almost" Good Answers: