A die is a three-dimensional solid with six square faces, eight vertices, and twelve edges, shaped like a cube. The cube is a regular polyhedron, which means that all its faces are congruent squares and all its edges have the same length. The shape of a die is important in games of chance, where it is used to generate random numbers. While dice may also have polyhedral or irregular shapes, the traditional die is a cube.