Minesweeper already has procedural generation to make the levels. The dice doesn't really add anything to the design. You could have easily made the number of mines be procedurally generated without showing the dice, and that would have been the better design choice.
Exposing procedural generation, which is typically hidden from the player in most games, just puts extra clutter on the user interface and makes it a little harder for the player to grasp all of what's going on in the game. That's likely not a problem with this game, since it's Minesweeper and many people already know how to play, but you could easily see it becoming a much bigger distraction in a different kind of game where the player doesn't start with a certain level of familiarity.
Take it out. Fix the bugs. Start with a clean implementation of classic Minesweeper, and then experiment with some different twists. A great example to follow is Dragonsweeper.