in reply to Re: How do I get a random index with weighting?
in thread How do I get a random index with weighting?
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.