Megosztás a következőn keresztül:


random_device::random_device

Constructs the generator.

random_device(const std::string& = "");

Remarks

The constructor initializes the generator as needed, ignoring the string parameter. Throws a value of an implementation-defined type derived from exception if the random_device could not be initialized.

For example code, see random_device Class.

Requirements

Header: <random>

Namespace: std

See Also

Reference

<random>

random_device Class