#include int main() { freopen("data.txt","w",stdout); for(int i=0;i<1000000;++i) printf("%d\n",rand()); }