My Project
D:/source/c++/Programme/sally/sally/sallyAPI/NumberGenerator.h
Go to the documentation of this file.
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 #pragma once
00029 #include "Define.h"
00030 #include <limits.h>
00031 #include <time.h>
00032 
00033 namespace SallyAPI
00034 {
00035         namespace System
00036         {
00045 
00046                 class DLL_API_SALLY CNumberGenerator
00047                 {
00048                 private:
00049                         static SallyAPI::System::CNumberGenerator*              m_pObject;
00050 
00051                         CNumberGenerator();
00052                         ~CNumberGenerator();
00053 
00054                         static unsigned TimeSeed();
00055                         int                             GenerateNumber();
00056                 public:
00057                         static void     DeleteInstance();
00058 
00059                         static int              GetNumber(int min, int max);
00060                         static float    GetFloatNumber(float min, float max);
00061                 };
00062         }
00063 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines