aboutsummaryrefslogtreecommitdiff
path: root/game/Random.h
diff options
context:
space:
mode:
authorWboerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 12:01:19 +0100
committerGitHub <noreply@github.com>2025-01-08 12:01:19 +0100
commit8055d401fc7c553a7036336b4b2fb2fca99a5986 (patch)
tree30d111450c8862c59371b1756645967fdeae79bf /game/Random.h
parentad5fb53986fcc3f3b3c5369574e0f8e95051f3d9 (diff)
parent9e54f238fbfced9243cc544c1461f21eefd5b0f1 (diff)
Merge pull request #108 from lonkaars/loek/random
add Random.h
Diffstat (limited to 'game/Random.h')
-rw-r--r--game/Random.h11
1 files changed, 11 insertions, 0 deletions
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);
+
+};
+