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