added randomGenerator to generate random numbers and added randomly choose best kmer motif