shuffling numbers in array
<pre><code>package test;

public class Test {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        double[] myList=new double[10];
        System.out.println("enter values");
        for (int i = 1; i &lt; myList.length; i++) {
            java.util.Scanner input=new java.util.Scanner(System.in);
            int j = (int)Math.random() * myList.length;
            double tmp=myList[j];
            myList[i]=myList[j];
            myList[j]=tmp;
            System.out.println(tmp);    
        }
    }
}
</code></pre>

<p>Why is it printing <code>0.0</code>?</p>