GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
qrgnin.f
Go to the documentation of this file.
1 LOGICAL FUNCTION qrgnin()
2C**********************************************************************
3C
4C LOGICAL FUNCTION QRGNIN()
5C Q Random GeNerators INitialized?
6C
7C A trivial routine to determine whether or not the random
8C number generator has been initialized. Returns .TRUE. if
9C it has, else .FALSE.
10C
11C**********************************************************************
12C .. Scalar Arguments ..
13 LOGICAL qvalue
14C ..
15C .. Local Scalars ..
16 LOGICAL qinit
17C ..
18C .. Entry Points ..
19 LOGICAL qrgnsn
20C ..
21C .. Save statement ..
22 SAVE qinit
23C ..
24C .. Data statements ..
25 DATA qinit/.false./
26C ..
27C .. Executable Statements ..
28 qrgnin = qinit
29 RETURN
30
31 entry qrgnsn(qvalue)
32C**********************************************************************
33C
34C LOGICAL FUNCTION QRGNSN( QVALUE )
35C Q Random GeNerators Set whether iNitialized
36C
37C Sets state of whether random number generator is initialized
38C to QVALUE.
39C
40C This routine is actually an entry in QRGNIN, hence it is a
41C logical function. It returns the (meaningless) value .TRUE.
42C
43C**********************************************************************
44 qinit = qvalue
45 qrgnsn = .true.
46 RETURN
47
48 END
logical function qrgnin()
Definition qrgnin.f:2