]> hackdaworld.org Git - physik/posic.git/commitdiff
init of a and b values
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 17 Aug 2009 14:00:00 +0000 (16:00 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Mon, 17 Aug 2009 14:00:00 +0000 (16:00 +0200)
random/random.c

index 902cdef4738d9d95f81b58b5fc72333948a60a1b..292bc69fda1738da8279d05d7171b47fc0e0ba88 100644 (file)
@@ -109,6 +109,7 @@ double rand_get_gauss(t_random *random) {
                return random->gauss;
        }
 
+       a=0; b=0;
        w=0;
        while((w>=1.0)||(w==0.0)) {
                a=-2.0*rand_get_double(random)+1.0;