
-----------------------------------
shalenzi
Tue Mar 18, 2014 10:44 am

Random numbers from 1-10
-----------------------------------
Could somebody please help me in printing the entire whole numbers ffrom 1-10 randomly. I tried the below code, but its not giving me the entire numbers.Instead getting repeated numbers also in o/p . Please somebody help me ASAP.

 import java.util.Random;
 
 class random
 {
 public static void main(String[] args)
 {
 Random rn = new Random();
for(int i =0; i 