This role would be good as a ranked role. However, when it is lynched all the living groups (Mafia, third-party, Town) swap roles with living people from their group (they don't just get a random role) and everyone has to change their role, unless they are the last player from their group. So if there are two Mafia left and Clown dies you know that the two Mafia have swapped roles.
I like the idea of a role raffle. It might make people sui less in the hopes of a role swap ~ also it would be nice for some people when clown is lynched on lylo phase ~ that way the win might be turned on the other people instead
Since some people are a little confused on how the Clown would ideally work, I'll explain it here.
Say we have a standard setup of 3 villagers, 2 mafia, a doc and a cop. Let's add in a clown.
Let's say day 1 the clown is lynched. The clown's win condition has been met, but the game does NOT end. Instead, the game continues to night 2, where players will find the roles IN THE SETUP scrambled. Not roles that weren't in the setup. So the doc and cop could end up as the mafia while two blues take their roles, etc.
Also, if a player dies before the clown is lynched then their role cannot be scrambled.