Skip to content

Instantly share code, notes, and snippets.

@hfadev
Created July 29, 2012 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hfadev/3195790 to your computer and use it in GitHub Desktop.
Save hfadev/3195790 to your computer and use it in GitHub Desktop.
C: Random number generation
//random number generation
srand(time(NULL));
printf("%d\n", rand());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment