MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / random_string

Function random_string

code/strings/aho_corasick.test.cpp:31–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31string random_string(int n, int cc) {
32 stringstream ss;
33 for (int i = 0; i < n; i++) {
34 ss << static_cast<char>(rng() % cc + 'a');
35 }
36
37 return ss.str();
38}
39
40void test() {
41 /* Field testing: Kattis stringmultimatching, Codeforces 366C */

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected