10 Replies Latest reply: Oct 29, 2006 7:25 PM by 807607 RSS

    unable to generate a random number

    807607
      Hi,

      Anyone can help? I cant complie the following program.
      error -- cannot file symbol method netInt()

      Thanks!

      import java.util.*;
      public class Random
      {
           public static void main(String[] args)
           {
                Random generator = new Random();
                int r = generator.nextInt();                    
           }
      }