I have a group of numbers from which I can choose a random number. I want to assign a weight to some numbers so that the weighted numbers are choosen more frequently than not weighted numbers.
Does anybody knows an alghorithm to do so?
Thanks.