My script is not the best for generate random numbers but it can be done. If you want to generate random numbers in a much bigger range without the priority stuff. I'd recommend you try this function. This is written this way because it allows you to have priority. In this case the number 11 will show up about 8 times more often than any other numbers.

The random # between 1- 12 is: 11