Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

random_device::operator()

 

Returns a random value.

result_type operator()();

Returns values uniformly distributed in the closed interval [min, max] as determined by member functions min() and max(). Throws a value of an implementation-defined type derived from exception if a random number could not be obtained.

For example code, see random_device Class.

Requirements

Header: <random>

Namespace: std

Show: