daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void stringGenerator(int length, int number) {
  2.    srand(time(NULL));
  3.    int i = 0;
  4.    int j = 0;
  5.    char alphabet[53] = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm";
  6.    while (j<number) {
  7.  
  8.       while (i<length) {
  9.  
  10.       putchar(alphabet[rand()%52]);
  11.       i++;
  12.       }
  13.       printf("\n");
  14.    i=0;
  15.    j++;
  16.    }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top