Skip to content

Instantly share code, notes, and snippets.

@mgronhol
Created August 29, 2012 12:14
Show Gist options
  • Save mgronhol/3511656 to your computer and use it in GitHub Desktop.
Save mgronhol/3511656 to your computer and use it in GitHub Desktop.
Random hello world
#include <stdio.h>
#include <stdlib.h>
int main( int argc, char **argv ){
int i;
srand( 22315606 ); rand();
for( i = 0 ; i < 5 ; ++i ){ printf( "%c", 'A' + rand() % 32 ); }
printf( " " );
srand( 210721 ); rand();
for( i = 0 ; i < 5 ; ++i ){ printf( "%c", 'A' + rand() % 32 ); }
printf( "\n" );
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment