Random melodies with irand, range, and other tricks Copy Copy