From 8f1b4e0962857d402f9d017fcbf387ef0eceb7c4 Mon Sep 17 00:00:00 2001 From: Joseph Redmon <pjreddie@gmail.com> Date: Thu, 01 Sep 2016 23:48:41 +0000 Subject: [PATCH] updates and things --- src/utils.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/utils.h b/src/utils.h index cba7f6f..3f0233a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -5,6 +5,7 @@ #include "list.h" #define SECRET_NUM -1234 +#define TWO_PI 6.2831853071795864769252866 void shuffle(void *arr, size_t n, size_t size); void sorta_shuffle(void *arr, size_t n, size_t size, size_t sections); @@ -41,6 +42,7 @@ float rand_normal(); size_t rand_size_t(); float rand_uniform(float min, float max); +float rand_scale(float s); int rand_int(int min, int max); float sum_array(float *a, int n); float mean_array(float *a, int n); -- Gitblit v1.10.0