forked from AngelMonica126/GraphicAlgorithm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTools.cpp
34 lines (28 loc) · 783 Bytes
/
Tools.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//--------------------------------------------------------------------------------------
// Copyright (c) Elay Pu. All rights reserved.
//--------------------------------------------------------------------------------------
#include "Tools.h"
#include <iostream>
#include "InputManager.h"
#include "App.h"
#include "common.h"
CTools::CTools()
{
}
CTools::~CTools()
{
}
//************************************************************************************
//Function:
float CTools::getRandom01()
{
std::uniform_real_distribution<float> u(0, 1);
return u(e);
}
//************************************************************************************
//Function:
int CTools::getRandomIntRange(int min,int max)
{
std::uniform_int_distribution<int> u(min, max);
return u(e);
}