?? random.h
字號:
///////////////////////////////////////////////////////////////////
/*****************************************************************
Name: Hussein A. Abbass,
Artificial Life and Adaptive Robotics Laboratory - ALAR
School of ITEE, UNSW@ADFA, Australia
*******************************************************************/
///////////////////////////////////////////////////////////////////
#ifndef _RANDOM_H#define _RANDOM_H#include <stdlib.h>#include <math.h>class Random {public: Random(); double nextDouble(); double nextGaussian(); double nextGaussian(double,double); void setSeed(int); void setSeed(long);private: long idum; // this is the seed long IA; long IM; double AM; long IQ; long IR; long NTAB; double NDIV; double EPS; double RNMX; long iy; long *iv;};#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -