One roll of a die is a Bernoulli trail, so we should have two binomial distributions B(1000, 0.002) and B(1000, 0.001).
The expected value should be 2 and 1 respectively if I am not completely mistaken.
I think u r right.
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
// takes a balance; returns an interval to block forging time.
double rollem(double balance){
double roll = 0.0;
while (roll == 0.0) roll = ((double) rand())/RAND_MAX;
return 1000 * roll / balance;
}
main(){
double balances[26], times[26];
double min, totalmoney = 0.0;
int wins[26];
int winner, count, trial, TRIALS = 1000000;
for (count = 0; count < 26; count++){
balances[count] = (count+1) * 1000;
totalmoney += balances[count];
wins[count] = 0;
}
for (trial = 0; trial < TRIALS; trial++){
for (count = 0; count < 26; count++){
times[count] = rollem(balances[count]);
}
min = times[0];
winner = 0;
for (count = 1; count < 26; count++)
if (min > times[count]){
min = times[count];
winner = count;
}
wins[winner]++;
}
for (count = 0; count < 26; count++){
printf("%c got %f%% of the wins with %f%% of the money.\n", count+'A',
100*(double)wins[count]/TRIALS,
100*(double)balances[count]/totalmoney);
}
}