Skip to content

Instantly share code, notes, and snippets.

@mtornwall
Last active September 28, 2016 13:36
Show Gist options
  • Save mtornwall/680adb06ffcf6b2ec663df2766e57634 to your computer and use it in GitHub Desktop.
Save mtornwall/680adb06ffcf6b2ec663df2766e57634 to your computer and use it in GitHub Desktop.
#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