new test from egcs-bug archives.

From-SVN: r15895
This commit is contained in:
Jeff Law 1997-10-14 11:35:26 -06:00
parent 9abbaac7c2
commit 31c0e01bc5

View File

@ -0,0 +1,12 @@
C
C RND - Return a random integer mod n
C
INTEGER FUNCTION RND (N)
IMPLICIT INTEGER (A-Z)
REAL RAND
COMMON /SEED/ RNSEED
RND = RAND(RNSEED)*FLOAT(N)
RETURN
END