I'm trying to generate a random int, weighted towards 1. Ideally it's unbounded, but it's not strictly necessary if that's not feasible or practical.
My current solution has been to have an array of ints with duplicate values weighting the options, then choosing a random int from those options. But I'm certain there's a better option
eg
int[] randOptions = {9, 8, 8, 7, 7, 7, 6, 6, 6, 6, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1};