Skip to content

Instantly share code, notes, and snippets.

@shime
Created January 19, 2012 16:42
Show Gist options
  • Save shime/1641075 to your computer and use it in GitHub Desktop.
Save shime/1641075 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main(){
srand(time(NULL));
int i = 0;
int random;
for (i=0;i < 10;i++){
random = rand()%1000;
printf("%d\n",random);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment