On Mar 17, 2010, at 9:33 AM, Roy Stogner wrote: > Thanks for the warning. I remember having to avoid rand() a decade > ago because the implementation sucked for some old Unix. (HP-UX 8? I > forget) I'd assumed that was a long-forgotten problem, but my own > code uses random()/srandom() thanks to that experience. Any idea > whether random() has the same problem on OS X?
random() doesn't have this problem... but it's also 10 times slower than rand()... and if you're calling it at every quadrature point.... that's a lot of time! ;-) Derek ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
