JAVA亂數 - Yahoo!奇摩知識+

JAVA亂數 - Yahoo!奇摩知識+

瀏覽:616
日期:2024-07-09
請問JAVA的亂數Math.random();和Random類別的 nextDouble();兩個有什麼不一樣嗎? ... 你可以看看Javadoc中Math.random()的說明: When this method is first called, it creates a single new pseudorandom-number generator, exactly as if by the expression...看更多