Namespaces
Variants
Views
Actions

std::random_device::operator()

From cppreference.com
< cpp‎ | numeric‎ | random‎ | random device
Revision as of 19:18, 17 March 2013 by Nate (Talk | contribs)

 
 
 
 
std::random_device
Member functions
Generation
random_device::operator()
Characteristics
 
result_type operator()();
(since C++11)

Generates a non-deterministic uniformly-distributed random value.

Contents

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

Template:cpp/numeric/random/engine/dcl list minTemplate:cpp/numeric/random/engine/dcl list max