02.07.2013 Views

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

HP Fortran Programmer's Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Class<br />

Inquiry function.<br />

Argument<br />

X mustbeoftypeintegerorreal.Itmaybescalarorarrayvalued.<br />

Result type,<br />

type parameters,<br />

and shape<br />

Default integer scalar.<br />

Result value<br />

Intrinsic procedures<br />

Intrinsic procedure specifications<br />

Theresulthasthevaluer if X is of type integer and the value b if X is of type real, where r and<br />

b are as defined in “The Real Number System Model” on page 475.<br />

RAN(ISEED)<br />

Description<br />

Multiplicative congruent random number generator.<br />

Class<br />

Elemental nonstandard function.<br />

Argument<br />

ISEED must be an INTEGER(4) variable or array element. RAN stores a number in ISEED to be<br />

used by the next call to RAN.<br />

ISEED should initially be set to an odd number, preferably very large; see the following<br />

example.<br />

Result type/<br />

type parameters<br />

REAL(4) type.<br />

Chapter 11 573

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!