#include <string.h>
#include <time.h>
int _tmain(int argc, _TCHAR* argv[])
{
srand(unsigned(time(0)));
for (int i = 0; i < 100; i++)
{
cout << rand() % 10+1 << endl;
}
getchar();
return 0;
}
#include <time.h>
int _tmain(int argc, _TCHAR* argv[])
{
srand(unsigned(time(0)));
for (int i = 0; i < 100; i++)
{
cout << rand() % 10+1 << endl;
}
getchar();
return 0;
}