Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!unixhub!slacvm!kencb From: KENCB@SLACVM.SLAC.STANFORD.EDU Newsgroups: comp.lang.fortran Subject: Re: randu? Message-ID: <91059.002619KENCB@SLACVM.SLAC.STANFORD.EDU> Date: 28 Feb 91 08:26:18 GMT References: <62349@eerie.acsu.Buffalo.EDU> Organization: Stanford Linear Accelerator Center Lines: 25 In article <62349@eerie.acsu.Buffalo.EDU>, haozhou@acsu.buffalo.edu (Hao Zhou) says: > >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. The subroutine RANDU comes from the CERN (the European high energy physics lab) program library called CERNLIB, most likely from the object library KERNLIB.OLB. CERN makes their library available for a variety of platforms, including Unix. >My question is how do you replace randu with rand? What is the range >of random number given by randu? You'll need to check the CERNLIB documentation. Perhaps one of your University colleagues has a copy. (I'm at home and can't get to my copy now, sorry :-( ) -Ken Dr. Kenneth H. Fairfield Internet: Fairfield@Tpc.Slac.Stanford.Edu SLAC, P.O.Box 4349, Bin 98 DECnet: 45047::FAIRFIELD (TPC::) Stanford, CA 94309 BITNET Fairfield@SlacTpc "These opinions are worth what you paid for 'em... ...and are they mine, not SLAC's, Stanford's, nor the DOE's..."