Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char* geradorStrings(int tam, int itr) {
- char *texto;
- int tipo[2] = {65, 97};
- int i;
- texto = (char*) malloc(sizeof(char) * tam);
- srand(time(NULL) + itr);
- for(i = 0; i < tam - 1; i++)
- texto[i] = (char) (rand() % 26 + tipo[rand() % 2]);
- texto[i] = '\0';
- return texto;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement