View Single Post
Old 12-15-2015, 07:35 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
This is a real world experiment
* your results may differ

Quote:
[...]8:~$ cat randfile
0
1
[...]8:~$ echo > rancount
[...]8:~$ for n in {1..1000}; do shuf -n1 randfile >> rancount ; done
[...]8:~$ grep -c "1" rancount
507
[...]8:~$ grep -c "0" rancount
493
[...]8:~$ echo > rancount
[...]8:~$ for n in {1..10000}; do shuf -n1 randfile >> rancount ; done
[...]8:~$ grep -c "0" rancount
4841
[...]8:~$ grep -c "1" rancount
5159
[...]8:~$ rm rancount
Computer random functions are not theoretical randoms.
"In every case, the peak probability is at half the number of flips and declines on both sides, more steeply as the number of flips increases."

The answer is a question: How many molecules of sweat are on each side of the coin you are flipping
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote