generateFrequency