Magic_Game/Easy2D/v1/Tool/Math.cpp

10 lines
179 B
C++
Raw Normal View History

2017-10-13 11:45:20 +08:00
#include "..\easy2d.h"
std::default_random_engine &Math::getEngine()
{
static std::random_device device;
static std::default_random_engine engine(device());
return engine;
}