33doublereal dlaran_(integer *iseed) {
38 integer it1, it2, it3, it4;
97 it4 = iseed[3] * 2549;
100 it3 = it3 + iseed[2] * 2549 + iseed[3] * 2508;
103 it2 = it2 + iseed[1] * 2549 + iseed[2] * 2508 + iseed[3] * 322;
106 it1 = it1 + iseed[0] * 2549 + iseed[1] * 2508 + iseed[2] * 322 + iseed[3] * 494;
118 ret_val = ((doublereal)it1 + ((doublereal)it2 + ((doublereal)it3 + (doublereal)it4 * 2.44140625e-4) * 2.44140625e-4) * 2.44140625e-4) * 2.44140625e-4;
125doublereal dlaran_oag(integer *iseed,
long increment) {
128 integer it1, it2, it3, it4, i;
132 for (i = 0; i < increment; i++) {
133 it4 = iseed[3] * 2549;
136 it3 = it3 + iseed[2] * 2549 + iseed[3] * 2508;
139 it2 = it2 + iseed[1] * 2549 + iseed[2] * 2508 + iseed[3] * 322;
142 it1 = it1 + iseed[0] * 2549 + iseed[1] * 2508 + iseed[2] * 322 + iseed[3] * 494;
151 ret_val = ((doublereal)it1 + ((doublereal)it2 + ((doublereal)it3 + (doublereal)it4 * 2.44140625e-4) * 2.44140625e-4) * 2.44140625e-4) * 2.44140625e-4;