public member function
<random>
std::random_device::random_deviceexplicit random_device (const string& token = /* see below */ );
Construct random device
Constructs a random_device object.If the random_device cannot be initialized, an exception derived from the standard exception class is thrown.
1
2
3
4
5
6
7
8
9
10
11
12
// random_device constructor
#include <iostream>
#include <random>
int main ()
{
std::random_device rd;
std::cout << "Random value: " << rd() << std::endl;
return 0;
}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4