If any one has any suggestions as to things to try please let me know.
*One of the most exciting things to me is always to try to write a function that generates a a melody without explicitly defining a scale or resorting to too much randomness. Going all atonal is easy... getting boring after a short while is easy... it's a thin balance.
Bonus points for sounding like you are modulating between scales in a coherent way.
Bonus points for two matching functions or two melodies from a single one that work well together.