在Java程式語言中,可以使用Math類別的random方法或是Random物件來 ... Random物件的nextInt(bound)方法可以隨機產生大於等於0且小於bound的整數。
確定! 回上一頁