summaryrefslogtreecommitdiffstats
path: root/src/FastRandom.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-20 13:34:38 +0200
committerMattes D <github@xoft.cz>2014-04-20 13:34:38 +0200
commitf99bdfb457bc1e497dd74932611a91add72b4f27 (patch)
treec5f0b53b4208b96089788719dfe2a1115ca5804d /src/FastRandom.cpp
parentAPIDump: Added a ChunkStay article. (diff)
parentFixed Code (diff)
downloadcuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.gz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.bz2
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.lz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.xz
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.tar.zst
cuberite-f99bdfb457bc1e497dd74932611a91add72b4f27.zip
Diffstat (limited to 'src/FastRandom.cpp')
-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;
+}
+
+
+
+