The patch works fine but not quite what I had in mind, as the interval is constant (unless I'm not using it correctly).
The idea was to randomly select an interval each time a note is depressed, say from a second to a minor 7th. This would equate to a number from 2-10 on your scale (I miss off 0, 1, 11 and 12 but not essential).

