I've never had any bad ones but today I opened my internet as usual and I got a full screen message telling me the metropolitan police had locked my computer and I had to pay £100

I logged off and on and its all working okay now..
I was wondering if anyone else has ever had a bad virus? If so, ..what happened