Number Generation
The code behind the generation of a single digit. The equation adapts as it depends on previous digits to generate the new one. All possibilities are added into an array, and digits that are unique as well as other factors are combined into an amount to be added for a higher change to be rolled.
Digit Chance
The formula for the generation of a digit triggers if a digit is unique. If found to be unique, a digit is weighted to be higher as 1 and 2 is usually repeated. A formula is used for the chance that a digit will be used.