gamejam

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

pp.c (257B)


      1 #include <stdio.h>
      2 #include <unistd.h>
      3 #include <stdlib.h>
      4 #include <time.h>
      5 
      6 int
      7 main() {
      8 	char c;
      9 	long t;
     10 	srand(time(NULL));
     11 	while ((c = getchar()) != EOF) {
     12 		putchar(c);
     13 		fflush(stdout);
     14 		while ((t = (rand() % 150000)) > 250000);
     15 		usleep(t);
     16 	}
     17 }