Random Letter Generator (with parameters)

Colter Carson's icon

Hi,

I'm very new to this world and I have a goal that I wish to achieve. I want to build a plugin that will generate a letter (Key - C to B plus all flats and sharps) so that I can practice chords. The parametric part would involve selecting the range of the output (i.e. C to F#). This plugin will replace the flash cards I am currently using. The process should be pretty simple (I've tried using 'itoa', 'random', and a few other things) but I was hoping to gather some advice from this wise community. Any help at all is much appreciated :) Thanks so much!

Source Audio's icon

As first You can fill umenu or coll with Note names, and use random number generator, to select them.
Would it not be wise to have 2 chromatic versions, one with sharps and other with flats ?
So first menu C, C#,D,D#,E F etc, the flats version C,Db, D, Eb, F, Gb,G etc
You limit the range of Random object to a specific number and add offset.
But what I didn't figure out is what kind of chords are You trying to create like that.
Could You explain it a bit better, it would be helpfull.