3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069 LOGICAL RESET
3070
3071 INTEGER I, IC, MI
3072
3073 SAVE i, ic, mi
3074
3075 INTRINSIC dble
3076
3077 IF( reset )THEN
3078
3079 mi = 891
3080 i = 7
3081 ic = 0
3082 reset = .false.
3083 END IF
3084
3085
3086
3087
3088
3089
3090
3091 ic = ic + 1
3092 10 i = i*mi
3093 i = i - 1000*( i/1000 )
3094 IF( ic.GE.5 )THEN
3095 ic = 0
3096 GO TO 10
3097 END IF
3098 dbeg = dble( i - 500 )/1001.0d0
3099 RETURN
3100
3101
3102
double precision function dbeg(reset)