- #include <iostream>
- #include <stdlib.h>
- #include <time.h>
- int main (){
- fprintf (stdout,"Qwixx initiated!");
- srand(time(NULL));
- // print 10 random numbers - however rand in clib is pseudo random
- for (int i = 0; i<1000; i++) {
- std::cout << (rand() % 6) + 1 << std::endl;
- }
- }
|