It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
#include
#include
#include
int mateo_wins() {
static long target = RAND_MAX * 0.495;
float bank = 100;
while (1) {
if (random() < target) {
bank *= 0.995;
if (bank > 184)
return 0;
} else {
bank *= 1.005;
if (bank < 16)
return 1;
}
}
}
void main(int argc, char *argv[]) {
time_t t;
int wins = 0, trials = atoi(argv[1]), c;
// seed random number generator with current time
time(&t);
srandom(t);
for (c = 0; c < trials; c++)
wins += mateo_wins();
printf("%d out of %d\n", wins, trials);
}
#!/usr/bin/env python
import random, string, sys
trials = string.atoi(sys.argv[1])
def mateo_wins():
bank = 100.0
while True:
if random.random() < 0.495:
bank *= 0.995
if bank > 184:
return 0
else:
bank *= 1.005
if bank < 16:
return 1
wins = 0
c = trials
while c:
wins += mateo_wins()
c -= 1
print wins, "out of", trials