If you sacrifice Mayhem Devil, its ability triggers.
03-05-2019
wotc
If a permanent is sacrificed to pay a cost of a spell or ability, Mayhem Devil's ability will resolve before that spell or ability. Conversely, if a permanent is sacrificed during the resolution of a spell or ability, that spell or ability will finish resolving before Mayhem Devil's ability is put onto the stack.
03-05-2019
wotc
A legendary permanent that is put into a graveyard because of the "legend rule" isn't sacrificed.
03-05-2019
wotc
Mayhem Devil itself doesn't allow any player to sacrifice any permanents. Its ability triggers whenever a player sacrifices a permanent because some other spell, ability, or cost instructed the player to do so.
03-05-2019
wotc
You control Mayhem Devil's triggered ability and choose the target, no matter who sacrificed the permanent.
Random a card of Magic: The Gathering (MTG), but you can also roll the D20 dice, random a Planeswalker, have fun with the random rules and more.