#include <string>
Go to the source code of this file.
◆ Dictionary
◆ randomWord()
Definition at line 14 of file Dictionary.C.
26 std::getline(dict, retval);
32 std::random_device rd;
33 std::mt19937 gen(rd());
34 std::uniform_int_distribution<> distribution(0, numwords);
35 int selection = distribution(gen);
38 std::getline(dict, retval);
40 std::getline(dict, retval);
41 for (
unsigned int i = 0; i < retval.size(); ++i) {
42 if (retval[i] <
'A' || retval[i] >
'Z') {
43 std::cerr <<
"word " << retval <<
" contains illegal data at pos " << i <<
'\n';
static std::string appRoot()