I want to take a played MIDI note and truncate it to its least significant 2 numbers, then use a multiplier to give a varying sequence. The randomness can be significantly improved if you impose pitch class and modality consideration but I have no idea how to.

I know how to truncate it to it's least significant 2 figures however I'm pretty stuck on the last part.

For an assignment.

Thanks for the help!