Meaning: someone or something that is dangerous because you don't know what they are going to do
Example: The politician was a loose cannon because no one knew what he was going to say. A rampaging bull is a loose cannon.
See this Idiom in a story: The Most Unruly Class in the World