From: Paul K. <pki...@us...> - 2004-07-28 06:10:10
|
Update of /cvsroot/octave/octave-forge/FIXES In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13163 Modified Files: rand.cc Log Message: Use 53 bits of precision for rand; randn still uses 32. Index: rand.cc =================================================================== RCS file: /cvsroot/octave/octave-forge/FIXES/rand.cc,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- rand.cc 13 Jul 2004 21:29:24 -0000 1.8 +++ rand.cc 28 Jul 2004 06:10:01 -0000 1.9 @@ -206,7 +206,7 @@ void fill_randu(int n, double *p) { - for (int i=0; i < n; i++) p[i] = randu(); + for (int i=0; i < n; i++) p[i] = rand53(); } /* |