Solution using two arrays to randomize integers.