There is also a 3/7 chance of the wand having no effect. ("Nothing happens.")

Every time a wand of wonder is zapped, there is a 1% chance that it will explode, abusingstrength.

Origin

The wand of wonder originally appeared in NetHack: The Next Generation. It was inspired by a similar item in the roguelikeAngband, which had a random effect whenever zapped, drawn from the effects of any other wand in that game.