I like the simplicity of this, and since the probabilities in my case are certain to add up to 1 (because I normalised them) then a 100-long array might be the simplest way.
I have, however, learned a fair amount from everyone else's replies! Thanks all.