Is there anything I can do to this code to make it better? As in faster, more attractive, and easier to understand (with out using comments).
Code:#include <stdlib.h> #include <time.h> #include <iostream> #include <fstream> using namespace std; int main () { int count=0; srand ( time(NULL) ); fstream fout("rand.txt"); while (count != 50) { fout << rand()%6+1 << "\n"; count++; } return 0; }