well Yioup, that would work if every player used a separate trigger for random.. which is such a waste of time.
So you would just check if the player has a hero or not when he types the -random message, and run if they don't have one, and dont run if they don't have one.