search for: randsetseed

Displaying 1 result from an estimated 1 matches for "randsetseed".

2008 Jul 18
1
system time - windows specific problem
...toolbox) > for(i in 1:10)print(torus(1)) [1] 0.9730577 [1] 0.9124289 [1] 0.5123534 [1] 0.4640765 [1] 0.9367557 [1] 0.2945414 [1] 0.3671455 [1] 0.2698379 [1] 0.6036739 [1] 0.6762776 > I think I know where the problem is. in the C file, randtoolbox.c, I use the machine time as follows void randSetSeed() { /* struct timeval { unsigned long tv_sec; // seconds since Jan. 1, 1970 long tv_usec; // and microseconds }; */ struct timeval tv; //take the machine time gettimeofday (&tv, NULL); // [ 2^16 * micros...