loadeddice
Five lumpy polyhedra: two 7-sided, one 12-sided, two 20-sided, every face a different size. Throw them in the tray and the numbers on their top faces add up to a sum; the sum picks a cell on the grid (walking a Hilbert curve). Then let them evolve: face sizes and numbers mutate until the odds of each sum match the ink in the target picture.
evolving the dice…
A throw is real physics: the dice tumble in the tray and the face pointing up when they stop counts. "From the odds" skips the physics: the dice in the tray just land on the sampled faces, so thousands of rolls take a second. It samples each die's estimated landing odds, so thousands of rolls take a second.
evolution
generation 0overlap with target 0%
Each die is a set of planes; moving a plane in grows its face, pushing it out shrinks it until the face vanishes. Fitness is how much the exact distribution of sums overlaps the target. Every generation: mutate planes, tilt normals, renumber faces, keep the fittest.
Each strip is one die: width = chance that face ends up on top, number = its value. Red slivers never come up.