in

Attention developers of [language you hate] what does this do?

Attention developers of [language you hate] what does this do? | developer-memes, array-memes, string-memes, IT-memes, language-memes, space-memes | ProgrammerHumor.io
developer-memes, array-memes, string-memes, IT-memes, language-memes, space-memes | ProgrammerHumor.io

Content

10 using namespace std; 11 12 const char myarrayl 13 14 15 16 17 18 19 std: :vectorunsigned int existing: 20 21 int getrng(std: :mt19937 eng, unsigned int length) 22 23 std: vectorunsigned int :iterator it; 24 25 unsigned int q; 26 27 28 do 29 30 31 9 std::uniformintdistributionunsigned int(0, length (eng) ; it std::find (existing. begin(), existing.end(), q) ; while (it ! existing.end ()); 32 33 existing.push back(q); 34 35 return g; 36 37 38 int main(int arg, char argv ) 39 40 const unsigned int length 44; 41 42 43 std: :mt19937 eng (12); existing.clear); 44 45 string result; 46 47 for (unsigned int i0;ilength;i) 48 49 50 int t get rng (eng, length); result myarray t); 51 52 53 cout result; 54 55 return 0; 56