question: public static void choose ( int n , int [ ] results ) { int k = results . length ; for ( int i = 0 ; i < k ; i ++ ) { boolean done = false ; while ( ! done ) { results [ i ] = RANDOM . nextInt ( n ) ; done = true ; for ( int j = 0 ; j < i ; j ++ ) { if ( results [ j ] == results [ i ] ) { done = false ; } } } } }
target:  Choose random numbers from 0 to n-1