java random number generator
<p>I don not understand  what roll &lt; 1000 does. i mean i do not see why its being used when the rand function generates the random numbers.</p>

<pre><code>public class Hello {
    public static void main(String[] args) {
        Random rand = new Random();
        int freq[] = new int[7];
        for (int roll = 1; roll &lt; 1000; roll++) { // is there a reason for roll&lt;1000
            ++freq[1 + rand.nextInt(6)];
        }
        System.out.println("Face \tFrequency");
        for (int face = 1; face &lt; freq.length; face++) {
            System.out.println(face + "\t" + freq[face]);
        }
    }
}
</code></pre>
