Random frequency generator.