返回列表 發帖
本帖最後由 吳秉翰 於 2018-8-25 14:21 編輯
  1. package bn.tw;

  2. public class Main {

  3.         public static void main(String[] args) {
  4.                 // TODO 自動產生的方法 Stub
  5.                 int random = (int) (Math.random()*10+1);
  6.                 System.out.println(random);
  7.         }
  8. }
複製代碼

TOP

返回列表