Share My Creation CoinToss Heads or Tails

Just a simple Coin Toss program with a java jCoinFlip library.

Have fun.
;)

Sorry found a bug, images would not include in Release but showed in Debug "they were 6 directories deep and I moved them to B4J projects under My Documents and it worked. "
 

Attachments

  • CoinToss.zip
    42.9 KB · Views: 519
Last edited:

billzhan

Active Member
Licensed User
Longtime User
giga,

It works fine with the lib.

I test it with different trials. It seems your lib is going right, and when sample size increases, the proprotion goes near 0.5.

Here is the result.

total:10
heads:6
tails:4

total:100
heads:39
tails:61

total:1000
heads:539
tails:461

total:10000
heads:4931
tails:5069

total:100000
heads:50197
tails:49803

total:1000000
heads:500699
tails:499301



Cheers,

BillZhan
 
Top