Is 161803398 A 'Special' Number? Inside of Math.Random()

前端 未结 2 1490
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 20:38

I suspect the answer is \'Because of Math\', but I was hoping someone could give a little more insight at a basic level...

I was poking aro

2条回答
  •  伪装坚强ぢ
    2020-12-22 21:17

    No, but it's based on Phi (the "golden ratio").

    161803398 = 1.61803398 * 10^8 ≈ φ * 10^8
    

    More about the golden ratio here.

    And a really good read for the casual mathematician here.

    And I found a research paper on random number generators that agrees with this assertion. (See page 53.)

提交回复
热议问题