Broken in Factorio 2.1 – Version 2.0 only! Factorio 2.1 changes the way the RNG is used. This breaks my in-game implementations. The theoretical aspects of how the RNG works still apply, as they still use the same RNG. For more info see section 6.1. Factorio 2.1 . Introduction With the release of the Space-Age DLC in Factorio several new mechanics were introduced. One major mechanic was the new concept of different items and building qualities . By default, items are created with common quality. If quality modules are used in the crafting machine we gain a small chance to obtain items of higher quality. What does that entail? In short: Items and buildings gain improved stats, such as faster crafting speeds, modules providing stronger buffs, power poles having an increased range and inserters swinging faster. Thats pretty neat – hence we are interested in obtaining the highest possible quality on our items and buildings.…