Skip to content

Instantly share code, notes, and snippets.

@pranavtbhat
Created March 20, 2014 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pranavtbhat/9665392 to your computer and use it in GitHub Desktop.
Save pranavtbhat/9665392 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define SIZE 1000000
void main()
{
int i=0;
srand(time(NULL));
for(i=0;i<SIZE;i++)
{
printf("%d ",rand()%SIZE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment