How do I know if I need a left or a right hand lock?

Look at the outside of your door, if the door hinges are on the right, you will need a right hand lock. If the hinges are on the left, you will need a left hand lock. It doesn't matter whether your door opens in or out.