Last active
December 24, 2015 11:59
-
-
Save JudahGabriel/6794792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(int argc, char** argv) | |
{ | |
static double items[1000000]; | |
int i = 0; | |
for (i = 0; i < 1000000; i++) | |
{ | |
double randomValue = ((double)rand() / (double)RAND_MAX); | |
items[i] = randomValue + i; | |
// Sample value: 1.462356634612 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment