Path: utzoo!attcan!uunet!elroy.jpl.nasa.gov!usc!zaphod.mps.ohio-state.edu!ub!acsu.buffalo.edu From: haozhou@acsu.buffalo.edu (Hao Zhou) Newsgroups: comp.lang.fortran Subject: randu? Message-ID: <62349@eerie.acsu.Buffalo.EDU> Date: 28 Feb 91 06:19:25 GMT Sender: news@acsu.Buffalo.EDU Organization: SUNY Buffalo Lines: 22 Nntp-Posting-Host: autarch.acsu.buffalo.edu I am trying to port some fortran source code from vax/vms to sun/unix. The source code compiles on unix but doesn't link since randu couldn't be found. I checked the code and found randu is referred as follows: call randu(i1,i2,u) where i1,i2,and u weren't initialized before the call. I guess this routine returns a random number in u and i1 and i2 are two seeds. Obviously this routine is not f77 standard since I couldn't find it in libF77.a. Instead, I found an equivalent function in libm.a called rand which belongs to C library. My question is how do you replace randu with rand? What is the range of random number given by randu? Hope somebody who is familiar with the vax version of fortran77 can shed me some light. Thanks. Hao -- Internet:haozhou@acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu@UBVM.BITNET UUCP: rutgers!ub!haozhou