Generates a random sequence and finds the matching sequence using only counts of correct values and position.