// Дядя_Ваня_2011-11-26
#include
#include
using namespace std;
#define N 15
void main()
{
int a[N];
do
{
system("cls");
srand((unsigned) time(NULL));
cout << endl; <br>
for (int n = 0; n < N; n++)
{
a[n] = 1 + rand() % 15;
for (int m = 0; m < n; m++)
{
if (a[n] == a[m])
{
n--;
break;
}
}
}
for (int n = 0; n < N; n++) cout << ' ' << a[n]; <br>
fflush(stdin);
cin.get();
}
while (true);
}