osu-ds/source/Helpers/MathHelper.cpp
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

12 lines
172 B
C++

#include "MathHelper.h"
u16 MathHelper::mSeed = 3246;
u16 MathHelper::Random(u16 min, u16 max)
{
mSeed= 1664525*mSeed+1013904223;
return (mSeed % (max-min) + min);
}