⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rand.h

📁 ROSETTA C++库是一个C++类库和例程集合
💻 H
字号:
// Rand.h: interface for the Rand class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RAND_H__45312C57_3B33_11D2_AF89_000000000000__INCLUDED_)
#define AFX_RAND_H__45312C57_3B33_11D2_AF89_000000000000__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "../copyright.h" // Added 000323 by Aleksander 豩rn.

#include <stdlib.h>
#include <kernel/utilities/rng.h>


class Rand
{

	static RNG rngInstance;
	static RNG * rng;
	static long seed;
	static int MaxInt;
	static int count;
public:
	static void setSeed(long seed);
	static int i(int upper = Rand::MaxInt);
	static double d();
	Rand();
	virtual ~Rand();

};



#endif // !defined(AFX_RAND_H__45312C57_3B33_11D2_AF89_000000000000__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -