cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

gm_rand.h

Go to the documentation of this file.
00001 #pragma once
00002 
00003 class gv_rand
00004 {
00005 private:
00006         long holdrandmmm;
00007 public:
00008         gv_rand(void);
00009         ~gv_rand(void);
00010         void srandmmm(int patch=0);
00011 
00012         // 0~32767
00013         int randmmm(void);
00014         // 0.0 ~ 0.9999? or 1.0f?
00015         double user_rand2(void);
00016 
00017         // 0~RMAX
00018         int user_rand3(int RMAX);
00019         // nM
00020         int RandRange(int nMin, int nMax);
00021 
00022         // 0 ~ 1¸¸ (10,000)
00023         int this_rand(void);
00024 };
00025 
00026 //extern gv_rand* g_pTestRand;
00027 extern void init_TestRand(void);
00028 extern void shut_TestRand(void);
00029 extern int ThisRandom(void);
00030 //
00031 //

Copyright(C) gvSystem & GamePlus All Rights Reserved.