import java.security.SecureRandom;
// ...
// generate cryptographic quality (but still not true random) numbers.
static SecureRandom wheel = SecureRandom.getInstance ( "SHA1PRNG" , "SUN" );
// ...
// generate 100 ints 0..9
for ( int i=0; i<100; i++ )
 {
  out.println( wheel.nextInt( 10 ) );
 }