I put a sock over the cat's head and watched it run around in random directions and into the wall
Good Lord, why would you do such a thing?
I just wanted to see if it would happen.
The cat could have got really hurt or ran into something hard and fell. You shouldn't do anything like put things over their head to prevent them from seeing. It might make it hard for the cat to breath too.
It's fine they are both fine.
They're fine this time, but next time you might not be so lucky. If you want to keep your cat safe, you'll refrain from putting things over its eyes.