Cita:
int[] vector = new int[25];
Random r = new Random();
int k,j,i = new int();
//generar numeros aleatorios
for (i = 0; i < 25; i++)
{
k = r.Next(1, 75);
vector[i] = k;
}
//
//numeros sin repetir
for (i = 0; i < 25; i++)
{
for (j = i+1; j < 25; j++)
{
if (vector[i] == vector[j])
{
k = r.Next(1, 75);
vector[i] = k;
}
}
}
Random r = new Random();
int k,j,i = new int();
//generar numeros aleatorios
for (i = 0; i < 25; i++)
{
k = r.Next(1, 75);
vector[i] = k;
}
//
//numeros sin repetir
for (i = 0; i < 25; i++)
{
for (j = i+1; j < 25; j++)
{
if (vector[i] == vector[j])
{
k = r.Next(1, 75);
vector[i] = k;
}
}
}