Guest User

Untitled

a guest
Oct 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*-+=";
  6.  
  7. int main(int argc, char **argv) {
  8. srand(time(NULL));
  9. for (int i=0; i<10; i++)
  10. printf("%c", charset[rand() % sizeof(charset)]);
  11. printf("\n");
  12.  
  13. return 0;
  14. }
Add Comment
Please, Sign In to add comment