Generating Random Numbers is quite simple. Just use the class Random and method nextInt as :
new Random().nextInt(10);
This will generate a unique random number between 0 and 9 (both inclusive). Similarly if you want to generate a unique random number between a fixed length, say 10 to 100, use can use a code something like [...]
Archive for January, 2011
Java Code for generating Unique Random Numbers
Posted by Saurabh on January 31st, 2011
How a New Software Can Help Save the Planet
Posted by Saurabh on January 29th, 2011
Lisbon University computer scientists have developed SPIRIT, software that reduces carbon dioxide (CO2) emissions by turning certain computers on a server off if those computers are not being used, and then turn them on again when they are needed. SPIRIT was used on 200 computers at Lisbon University last year and saved the equivalent of [...]

Posted in

