aboutsummaryrefslogtreecommitdiff
path: root/game/Random.h
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 12:01:34 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 12:01:34 +0100
commit49f0f0a24c1557a90530e0d2e0160e221644728a (patch)
tree41224a17447426fc6cd84042331b326359d10c9f /game/Random.h
parent65cdd7966c276dd7b1ffec7bf0de243b9370eeb1 (diff)
parent8055d401fc7c553a7036336b4b2fb2fca99a5986 (diff)
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
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);
+
+};
+