// Bad way to generate random integers 0 .. 10
import java.util.Random;
// ...
// To get exactly the same results each run
// seed the generator with a repeatable value.
// Create the Random object only once.
static Random wheel = new Random( 149L );
// ...
for ( int i=0; i<100; i++ )
   {
   // generate another random integer, mask off sign bit, take modulus
   int m = ( wheel.nextInt() & Integer.MAX_VALUE ) % 11; // use with caution!!
   out.println( m );
   }