This was totally based on these nice and well machined rotating dice:
To make one, you'll need:
Snap the magnets by pressing them against the proper holes (indicated in the image) with a hard surface (a ruler, for example). The magnets holes were made to let the magnets free for spinning, to ensure the attraction force between them (not repulsion). Depending on how the magnets balls were made they can have magnetic poles changing across its surface - or from inside to outside. So, if you get the first type, they will spin and attract each other. The images show the order of assembly.
Due to the lose magnets, the toy makes a nice sound when spinning.
There is a small margin of error, it can stop between numbers, but it doesn't ruin the experience…
The author marked this model as their own original creation. Imported from Thingiverse.