Developer's Daily Java Education - Test Projects
  front page | java | perl | unix | DevDirectory
   
Front Page
Java
Education
   
 


import java.util.Random;

public class RandomTests
{
  public static void main(String[] args)
  {
    Random random = new Random();
    for ( int i=0; i<10; i++ )
    {
      int randomInt = random.nextInt(100);
      System.out.println( "randomInt = " + randomInt );
    }
  }
}
Copyright 1998-2003 DevDaily Interactive, Inc.
All Rights Reserved.