std::random_device::operator() - cppreference.com (original) (raw)
| result_type operator()(); | | (since C++11) | | -------------------------- | | ------------- |
Generates a non-deterministic uniformly-distributed random value.
[edit] Parameters
(none)
[edit] Return value
A random number uniformly distributed in [min(), max()].
[edit] Exceptions
Throws an implementation-defined exception derived from std::exception if a random number could not be generated.
[edit] See also
| | gets the smallest possible value in the output range (public static member function) [edit] | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | | gets the largest possible value in the output range (public static member function) [edit] |