summaryrefslogtreecommitdiffstats
path: root/src/FastRandom.cpp
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-04-07 19:52:35 +0200
committerdaniel0916 <theschokolps@gmail.com>2014-04-07 19:52:35 +0200
commitaf566d5a79134842854bea78de577676d507949f (patch)
tree8ab441598a88aaea3163b19ace2b341471e8e273 /src/FastRandom.cpp
parentadded EnchantItemPacket to older Protocols (diff)
downloadcuberite-af566d5a79134842854bea78de577676d507949f.tar
cuberite-af566d5a79134842854bea78de577676d507949f.tar.gz
cuberite-af566d5a79134842854bea78de577676d507949f.tar.bz2
cuberite-af566d5a79134842854bea78de577676d507949f.tar.lz
cuberite-af566d5a79134842854bea78de577676d507949f.tar.xz
cuberite-af566d5a79134842854bea78de577676d507949f.tar.zst
cuberite-af566d5a79134842854bea78de577676d507949f.zip
Diffstat (limited to '')
-rw-r--r--src/FastRandom.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/FastRandom.cpp b/src/FastRandom.cpp
index e6634bb0d..c45261947 100644
--- a/src/FastRandom.cpp
+++ b/src/FastRandom.cpp
@@ -172,3 +172,13 @@ float cFastRandom::NextFloat(float a_Range, int a_Salt)
+
+int cFastRandom::GenerateRandomInteger(int a_Begin, int a_End)
+{
+ cFastRandom Random;
+ return Random.NextInt(a_End - a_Begin + 1) + a_Begin;
+}
+
+
+
+