跳到主文
部落格全站分類:運動體育
我在VBA的範例看到這樣的一段
MyValue = Int((6 * Rnd) + 1) ' 產生 1 到 6 之間的亂數值。
其中,rnd是生產一個0~1之間的浮點數。
我不了解的地方是,為什麼:任一浮點數 * N+1,會得出1~N之間的結果?
請數學高手解答!謝謝。
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:
線上遊戲排行榜2013/2014,進擊的巨人線上看,candy crush saga外掛,正妹寫真三圍
gyynimpiamar5 發表在 痞客邦 留言(0) 人氣()