When calling for a random integer from 1-6, how can I make it gradually get less likely to pick a number the bigger it is? [duplicate]
Like having 1 be the most common number and 6 be the least common number. And everything else just leveling out.
I have a list of entities. Every entity contains a number that holds how many times the entity has been selected. I need to make a function that selects n (say 25%) of the entities, randomly. What I ...
I'm using this as part of a game, but it's not really a game development question, so I'm putting it on this more general Stack Exchange. The goal is to generate "random" outputs for a fixed integer ...