This weekend I've started a character development board game like the one in rival schools. But I didn't want yet another dice game, throwing dice can be a bit restrictive. That's why I've tried to create something that gives me total control over the items, and a splash of control to the player.
Since I've spend the whole weekend perfecting this mechanism, I've decided to write a demonstration and turn it into a standalone feature that you can use in your games.
While you wait to see it in the board game, give it a try. The code is in the attachments.