Java tutorial
import java.util.Arrays; import java.util.Random; public class Main { private static double[] anArray; public static void main(String args[]) { anArray = new double[10]; Random rand = new Random(); for (int i = 0; i < 10; i++) { anArray[i] = rand.nextInt(); } System.out.println(Arrays.toString(anArray)); } }