Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- char charset[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~!@#$%^&*-+=";
- int main(int argc, char **argv) {
- srand(time(NULL));
- for (int i=0; i<10; i++)
- printf("%c", charset[rand() % sizeof(charset)]);
- printf("\n");
- return 0;
- }
Add Comment
Please, Sign In to add comment