/* ------------------------------------------------------ 乱数の表示 Rand_01 ------------------------------------------------------ */ import java.io.*; class Rand_01 { public static void main(String[] args) throws Exception { double ransu; int n; /* ------------------------------- 乱数の生成 Math.random() 乱数の値は0.0〜1.0未満の実数 ----------------------------------*/ for ( n=0 ; n<10 ; n++ ) { ransu=Math.random(); System.out.print(ransu); System.out.print("\n"); } } }