added inputnum
added frequencies to randomization of phrases