random.h
来自「飞机场模拟系统」· C头文件 代码 · 共 23 行
H
23 行
#ifndef _RANDOM_H_
#define _RANDOM_H
#include <cstdlib>
#include <time.h>
#include <limits.h>
#include <cmath>
class Random {
public:
Random(bool pseudo = true);
double random_real();
int random_integer(int low, int high);
int poisson(double mean);
private:
int reseed(); // Re-randomize the seed.
int seed,
multiplier, add_on; // constants for use in arithmetic operations
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?