12345678910111213141516171819202122232425 |
- #include <iostream>
- #include <cstdlib>// stdlib.h
- #include <ctime>// time.h
- using namespace std;
- int main()
- {
- cout << "Hello world!" << endl;
- int nb;
- srand(time(0));
- cout << time(0) << endl << endl;
- for (int i(0); i<8; i++)
- {
- nb = rand() % 5;
- cout << nb << endl;
- }
- return 0;
- }
|