package taskvip;
import java.util.Random;
public class Main {
public static void main(String[] args)
{
int y =0;
Random t =new Random ();
fun1 e = new fun1();
for ( e.i = t.nextInt(50); e.i < 100; e.i++)
{
e.A[e.i]= e.k.nextInt(50);
y=e.k.nextInt();
}
for ( e.i = 0; e.i < 100; e.i++)
{
System.out.println("elements" + (e.i+1)+ "="+ e.A[e.i]);
}
}
}
package taskvip;
import java.util.Random;
public class fun1
{ public int i ;
public int y ;
public int []A = new int [100];
Random k = new Random ();
}
how i can make random value "k" not repeat