📄 random.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -