Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Collapse the table of content
Expand the table of content


Estimates the randomness of the source.

double entropy() const noexcept;

The member function returns an estimate of the randomness of the source, as measured in bits.

For example code, see random_device Class.

Header: <random>

Namespace: std

© 2015 Microsoft