Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29386 Discussions

Use RAN function, can't get it to work

mcdibph2
Beginner
1,035 Views
I've just started using the Compaq program, previously I've been using Absoft on a Apple for my work.
Part of my program contains a RAN comand, which is a function not allowed as a actual argument. On the Absoft program I used you simply had to load a VAX/VMS library, which was a tick box as you went through the build process. I can't seem to see anything that looks like this with this program. How do I get it working?
0 Kudos
1 Reply
TimP
Honored Contributor III
1,035 Views
Are you expecting a RAN() function to be present in a library provided with the compiler?
Maybe you should consider changing to the standard Fortran facility RANDOM_NUMBER, or possibly, to one supported as a backwared compatibility option by a number of Fortran vendors, such as RAND().
If you want an RNG to give the same results on various compilers, you must supply your own.
0 Kudos
Reply