import java.util.*;
public class PrintARandomNumberFrom0To9 {
public static void main( String[] args ) {
//seed the random with the current time
Random random = new Random( new Date.getTime() );
// print a 'random' number between 0 (inclusive) and 10 (exclusive)
System.out.println( random.nextInt( 10 ) );
}
}