Let N be an positive integer. It can be written as 10h+k where h is an integer and k∈[0,1). Can notice that the integral part of 10k, i.e., ⌊10k⌋, decides the first digit of N.
If K∼Unif(0,1) then the PDF of 10K is
f(x)={xln101,0,x∈[1,10)o.w
| Interval |
Prob. |
Approx. Value |
| [1,2) |
log102 |
0.301030 |
| [2,3) |
log10(3/2) |
0.176091 |
| [3,4) |
log10(4/3) |
0.124939 |
| [4,5) |
log10(5/4) |
0.096910 |
| [5,6) |
log10(6/5) |
0.079181 |
| [6,7) |
log10(7/6) |
0.066947 |
| [7,8) |
log10(8/7) |
0.057992 |
| [8,9) |
log10(9/8) |
0.051153 |
| [9,10) |
log10(10/9) |
0.045757 |
猜拳机器,以为有神谕,实则纯靠速度