How to achieve a variable frequency AC voltage source

Do you have a predefined set of voltage source data? Or how do you want to change the frequency? Is the frequency variation random or follows a pattern?