Re: Fortran, no RAN ?

Liste des GroupesRevenir à co vms 
Sujet : Re: Fortran, no RAN ?
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 16. Jun 2024, 18:54:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4n8sb$5g4b$2@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 6/16/2024 12:22 PM, Michael Brown wrote:
I've been building MTREK, written in fortran, on my community edition and it compiles fine but complains of no RAN function at link time. It's hard to believe they left out this intrinsic function, can anyone clarify this or offer a solution ?
VMS Fortran got both RAN and the standard RANDOM_NUMBER:
       program randemo
       implicit none
       integer*4 seed, i
       real*4 r1,r2
       seed = 1234567
       do 100 i = 1,5
         r1 = ran(seed)
         write(*,*) r1
         call random_number(r2)
         write(*,*) r2
100   continue
       end
Arne

Date Sujet#  Auteur
16 Jun 24 * Fortran, no RAN ?28Michael Brown
16 Jun 24 `* Re: Fortran, no RAN ?27Arne Vajhøj
16 Jun 24  +* Re: Fortran, no RAN ?13Arne Vajhøj
17 Jun 24  i`* Re: Fortran, no RAN ?12Lawrence D'Oliveiro
17 Jun 24  i `* Re: Fortran, no RAN ?11Arne Vajhøj
17 Jun 24  i  +* Re: Fortran, no RAN ?9Arne Vajhøj
17 Jun 24  i  i+- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  i  i`* Re: Fortran, no RAN ?7Lawrence D'Oliveiro
18 Jun 24  i  i `* Re: Fortran, no RAN ?6John Reagan
18 Jun 24  i  i  +- Re: Fortran, no RAN ?1Stephen Hoffman
18 Jun 24  i  i  `* Re: Fortran, no RAN ?4Arne Vajhøj
19 Jun 24  i  i   `* Re: Fortran, no RAN ?3Simon Clubley
19 Jun 24  i  i    `* Re: Fortran, no RAN ?2Chris Townley
19 Jun 24  i  i     `- Re: Fortran, no RAN ?1Simon Clubley
17 Jun 24  i  `- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  `* Re: Fortran, no RAN ?13Michael Brown
17 Jun 24   `* Re: Fortran, no RAN ?12Arne Vajhøj
18 Jun 24    +* Re: Fortran, no RAN ?9Arne Vajhøj
19 Jun 24    i`* Re: Fortran, no RAN ?8Michael Brown
19 Jun 24    i `* Re: Fortran, no RAN ?7Arne Vajhøj
20 Jun 24    i  `* Re: Fortran, no RAN ?6Michael Brown
20 Jun 24    i   +* Re: Fortran, no RAN ?3abrsvc
20 Jun 24    i   i+- Re: Fortran, no RAN ?1Arne Vajhøj
21 Jun 24    i   i`- Re: Fortran, no RAN ?1Michael Brown
20 Jun 24    i   `* Re: Fortran, no RAN ?2Arne Vajhøj
20 Jun 24    i    `- Re: Fortran, no RAN ?1Arne Vajhøj
18 Jun 24    `* Re: Fortran, no RAN ?2Arne Vajhøj
19 Jun 24     `- Re: Fortran, no RAN ?1Arne Vajhøj

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal