std::random_device::operator()

From cppreference.com
< cpplrm; | numericlrm; | randomlrm; | random device
Pseudo-random number generation
Uniform random bit generators
Engines and engine adaptors
Non-deterministic generator
Distributions
Uniform distributions
Bernoulli distributions
Poisson distributions
Normal distributions
Sampling distributions
Seed Sequences
(C++11)
C library
std::random_device
Member functions
Generation
random_device::operator()
Characteristics
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]
gets the smallest possible value in the output range
(public static member function)
[static]
gets the largest possible value in the output range
(public static member function)