fork(2) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. int main(void) {
  6. srand(time(NULL)); //only do this once
  7. for(int i =0;i<25;i++)
  8. printf("%c", (rand()%(90-65))+65); //65 is ASCII for capital A, 90 is ASCII for capital Z
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0s 2112KB
stdin
Standard input is empty
stdout
PORWRJINWNYKAACYLHAMKDNBW