生成从外部计算机上的一个随机顺序。
class random_device {
public:
typedef unsigned int result_type;
explicit random_device(const std::string& token = /* implementation defined */);
result_type min() const;
result_type max() const;
double entropy() const;
result_type operator()();
private:
random_device(const random_device&) = delete;
void operator=(const random_device&) = delete;
};
备注
选件类描述随机数的源,最好是从非确定的外部计算机。默认情况下此实现中生成的值不是不确定的。它们在近距离 [0, 65535]统一分配。
要求
标头: <random>
命名空间: std