Last active
September 28, 2016 13:36
-
-
Save mtornwall/680adb06ffcf6b2ec663df2766e57634 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <random> | |
int main(){ | |
std::random_device rd; | |
std::mt19937 gen(rd()); | |
std::uniform_int_distribution<> dis('a', 'z'); | |
char arr[10] = {0}; | |
for(int j=0;j<10;j++){ | |
for(int i =0;i<9;i++){ | |
arr[i] = dis(gen); | |
} | |
puts(arr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment