Model a round corner shape dice, and using modifier stack to deform it become a much square shape dice.
Modeling Dice (Blender)