返回列表 發帖
  1. public class Ch35
  2. {
  3.     public static void main(String args[])
  4.     {
  5.         double r;
  6.         for(int i=0; i<=19; i++)
  7.         {
  8.             r=Math.random();
  9.             System.out.println((int)(r*3+1));
  10.         }
  11.     }
  12. }
複製代碼

TOP

返回列表