This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
------ foo.cpp ------ #include <cstdlib> #include <iostream> using namespace std; int main () { cout << rand() << endl; cout << rand() << endl; return 0; } ---------------------
// g++ version 3.3.3 (cygwin special)
$ g++ foo.cpp
The program below generates the following output: ----------- 0 1481765933 -----------
First pseuso-random number is 0.
Is it by purpose?
Gerrit -- =^..^=
Action Soccer: http://www.action-soccer.de/?lv=de&id=505 (german online game)
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |