I want to have an item array with maybe 20 or so items in it. there will also be an integer that will range from 1-100. if the int is 10 for example there should be a higher chance of getting a lower item out of the array, vice versa if it was 90.
short of having a whole range of if/then/elses is there a better way to do this? some sort of formula I could use to generate a number between 1 and 20 based on how high a particular int variable is?
short of having a whole range of if/then/elses is there a better way to do this? some sort of formula I could use to generate a number between 1 and 20 based on how high a particular int variable is?