diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-20 06:00:00 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-04-20 06:00:00 -0700 |
commit | 36b74c04154cdecba1f999f5b358874502755cd0 (patch) | |
tree | 21bac2ca5dc251e18ec3b2e9a878bb110ecb8b6e /comp.c | |
parent | 6d399b63a4d0f29169c06e119fc56fce465c4a55 (diff) | |
download | dartboat-36b74c04154cdecba1f999f5b358874502755cd0.tar.gz dartboat-36b74c04154cdecba1f999f5b358874502755cd0.tar.xz |
add function to test three-dart averages
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) |