Tying the rope

What is the probability that two pieces of rope are tied together, when Pat ties two loose ends together?

Problem



Sam is holding two lengths of rope by their mid-points.

Pat chooses two of the loose ends at random and ties them together.

What is the probability that both pieces of rope are tied together?