summaryrefslogtreecommitdiff
path: root/comp.c
diff options
context:
space:
mode:
Diffstat (limited to 'comp.c')
-rw-r--r--comp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/comp.c b/comp.c
index 13b21a6..4932e37 100644
--- a/comp.c
+++ b/comp.c
@@ -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)