// Copyright 2005 Daniel Cer (daniel.cer@cs.colorado.edu) // // This work is licensed under the Creative Commons Attribution-NonCommercial- // ShareAlike License. To view a copy of this license, visit // http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a letter to // Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, // 94105, USA. #include #include using namespace std; // n_i = 65539*n_(i-1) % 2**31 int randu() { static int n = 1; return n=((n<<16)+(n<<1)+n)&0x7FFFFFFF; } int main(int argc, char *argv[]) { if (argc != 2) { cerr<<"Usage:\n\t"< unlimited"<>max_iter; for (int i = 0; i < max_iter || !max_iter; i++) cout<