#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
using namespace std;
int main()
{
ofstream out ("D:\zhang\\output.txt");
int n=1000;
srand((unsigned)time(NULL));
int x;
while(n-->0)
out<<' '<<rand()%10;
}