Use a for each integer in conjunction with a global integer array, which holds your desired numbers, or find a formula, which correctly results in your desired numbers.
Since I cannot think of a formula for your numbers, I recommend the array (Pseudocode):
Use a for each integer in conjunction with a global integer array, which holds your desired numbers, or find a formula, which correctly results in your desired numbers.
Since I cannot think of a formula for your numbers, I recommend the array (Pseudocode):
The array gets set at map initialization; you don't need to set it every time you want to use it.
I hope, you get what I mean from the pseudo-galaxy code ;)