diff options
Diffstat (limited to 'comp.c')
-rw-r--r-- | comp.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -7,8 +7,7 @@ #include <stdbool.h> #include <stdlib.h> -#define HORIZONTAL_STDEV 24 -#define VERTICAL_STDEV 24 +int horizontal_stdev = 24, vertical_stdev = 24; double drand() { @@ -38,8 +37,8 @@ double gauss(double mean, double stdev) struct ccoords get_offset() { - return (struct ccoords){ .x = gauss(0, HORIZONTAL_STDEV), - .y = gauss(0, VERTICAL_STDEV) }; + return (struct ccoords){ .x = gauss(0, horizontal_stdev), + .y = gauss(0, vertical_stdev) }; } struct ccoords pol_to_cart(struct pcoords c) |