- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have been using the DRAND and RAND functions to generateuniform RNs, but when tested with the DIEHARD suite of test , it performas very poorly, in factquite bad. I hadtried diffent seed values but same results overall, Have any one run into similar problems ?
thanks,
Mauricio Ortiz
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As I understand it, those functions are present only for backward compatibility with some legacy compilers of 2 decades ago, so aren't intended to pass quality tests, certainly not tests devised in the last 10 years. See analogous comments about RAND() in the URL quoted below. Also note the comments there about the requirement for open licensing of algorithms.
Even for the Fortran standard RANDOM_NUMBER function, which would be preferred in any application which has been maintained in the last decade, there doesn't appear to be a consensus among various compilers on the criteria for quality and speed.
We just had a post where there was a complaint, in effect, that current ifort doesn't have a faster RANDOM_NUMBER than its predecessor of 10 years ago (when both are run on the same recent CPU). Yet, the ifort RANDOM_NUMBER is several times as fast as the one offered by gfortran. gfortran is able to make changes to improved quality at the expense of speed without inciting riots:
http://gcc.gnu.org/ml/fortran/2007-07/msg00454.html- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ifort RANDOM_NUMBER is a very good implementation,

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page