Randomising the chance that something will appear

BlitzMax Forums/BlitzMax Programming/Randomising the chance that something will appear

Thanks. I like the idea of presorting the percentages and putting the largest first to reduce loop iterations (or if/then select/case steps). I guess there is no quicker way to do it then. The weights are dynamic by the way so I can't use consts.