hello how can i randomly rotated block texture in texturepack?

like dirt (dirt has randomly rotated block texture)

Continue to help post