I am working for online examination project.
my work is to generate random number without repetition.
i tried and i am getting numbers to be repeated sometime....
I need to know how to check the repetition in the generated number.
random r=new random();
for(i=0;i<10;i++)
{
int j=r.nextint(10);
System.out.println(j);
}