From 9e54f238fbfced9243cc544c1461f21eefd5b0f1 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 8 Jan 2025 09:56:45 +0100 Subject: add Random.h --- game/Random.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 game/Random.h (limited to 'game/Random.h') diff --git a/game/Random.h b/game/Random.h new file mode 100644 index 0000000..cf05e87 --- /dev/null +++ b/game/Random.h @@ -0,0 +1,11 @@ +#pragma once + +class Random { +public: + static float f(float upper = 1.0, float lower = 0.0); + static double d(double upper = 1.0, double lower = 0.0); + static int i(int upper, int lower = 0); + static unsigned u(unsigned upper, unsigned lower = 0); + +}; + -- cgit v1.2.3