2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857 LOGICAL RESET
2858
2859 INTEGER I, IC, MI
2860
2861 SAVE i, ic, mi
2862
2863 INTRINSIC dble
2864
2865 IF( reset )THEN
2866
2867 mi = 891
2868 i = 7
2869 ic = 0
2870 reset = .false.
2871 END IF
2872
2873
2874
2875
2876
2877
2878
2879 ic = ic + 1
2880 10 i = i*mi
2881 i = i - 1000*( i/1000 )
2882 IF( ic.GE.5 )THEN
2883 ic = 0
2884 GO TO 10
2885 END IF
2886 dbeg = dble( i - 500 )/1001.0d0
2887 RETURN
2888
2889
2890
double precision function dbeg(reset)