Added Copyright stuff.
This commit is contained in:
parent
c9be9f9ab1
commit
fe0b52768d
2
Makefile
2
Makefile
@ -21,5 +21,5 @@ src/%.o: src/%.c
|
|||||||
clean:
|
clean:
|
||||||
$(RM) src/*.o
|
$(RM) src/*.o
|
||||||
|
|
||||||
fullclean: clean
|
cleanall: clean
|
||||||
$(RM) bin
|
$(RM) bin
|
||||||
|
@ -47,7 +47,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
srand(time(NULL));
|
srand(time(NULL));
|
||||||
|
|
||||||
|
printf("Working...\n");
|
||||||
for(int i = 0; i < trials; i++) {
|
for(int i = 0; i < trials; i++) {
|
||||||
|
if(i % 100000000 == 0) printf("Working...\n");
|
||||||
int r = rand() % 100 + 1;
|
int r = rand() % 100 + 1;
|
||||||
if(r <= 50) heads++;
|
if(r <= 50) heads++;
|
||||||
else tails++;
|
else tails++;
|
||||||
|
Loading…
Reference in New Issue
Block a user