From 36b74c04154cdecba1f999f5b358874502755cd0 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Wed, 20 Apr 2022 06:00:00 -0700 Subject: add function to test three-dart averages --- comp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'comp.c') diff --git a/comp.c b/comp.c index 13b21a6..4932e37 100644 --- a/comp.c +++ b/comp.c @@ -7,8 +7,7 @@ #include #include -#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) -- cgit v1.2.3-70-g09d2