The HEX Vending Machine can be found in Diagon Alley. There are two ways that you can use the vending machine. Either insert 50 galleons or a vending maching token. You now have 10 options:
>bang on the glass
>kick the side
>jump up and down
>check push slot
>sacrifice a mudblood
There are six things that can happen next. It will either kill you, prank you, give you money, give you a random item, give you a detention, or it will do nothing.
You can only use the vending machine once a day.
WARNING Use of this machine has been known to cause unwanted side-effects. Approach at your own risk.