| 1 | string rand_string(int l, int h) { |
| 2 | int len = uniform_int_distribution(l, h)(rng); |
| 3 | stringstream ss; |
| 4 | rep(i,0,len) { |
| 5 | if (rng() % 2 == 0) { |
| 6 | ss << static_cast<char>(rng() % 26 + 'a'); |
| 7 | } else { |
| 8 | ss << static_cast<char>(rng() % 26 + 'A'); |
| 9 | } |
| 10 | } |
| 11 | return ss.str(); |
| 12 | } |
| 13 | |
| 14 | void test() { |
| 15 | rep(it,0,8000) { |