W3cubDocs

/C++

std::random_device::operator()

result_type operator()();
(since C++11)

Generates a non-deterministic uniformly-distributed random value.

Parameters

(none).

Return value

A random number uniformly distributed in [min(), max()].

Exceptions

Throws an implementation-defined exception derived from std::exception if a random number could not be generated.

See also

[static] (C++11)
gets the smallest possible value in the output range
(public static member function)
[static] (C++11)
gets the largest possible value in the output range
(public static member function)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/random/random_device/operator()