I have been working on a script that changes the result of a recipe every time it is produced. The result should depends on the outcome of math.random. So far i got nothing to work.
Does anyone know how to do this or if it is even possible in factorio? It would be a great help for the mod i am developing.
What i am trying to do is insert stone in a machine and you get either iron ore or copper ore out of it. Another thing i would like to use it for is to randomize the ore you get from (example) a iron ore field. Something like low grade, medium grade and high grade iron ore. Or different kind of minerals. But like i said i cant get it to work, so i would love to hear your suggestions
