return ((max + 0.0) * (rand() / (RAND_MAX + 1.0)));
}
-/* Round up x to a multiple of y */
+/** Round up x to a multiple of y */
#define ROUND_UP(x, y) (((x) + (y - 1) / (y)) * (y))
+
+/** Get the size of an array */
+#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))