(int)Math.floor(Math.random()*50 + 1) --> 由於地板函數的值是double , 故用(int) 將其強制轉型, ... 不過應該就是(四捨五入/無條件進位/無條件捨去)的其中一種吧~~ ...
www.google.com.tw