A rangefinder camera has a mechanism which works somewhat like your eyes. You see in three dimensions because each of your eyes sees a slightly different image and your brain processes this image difference to decode the relative distances of objects.
A rangefinder camera also has two 'eyes' or viewing ports on the front face of the camera. When you look through the viewing port on the back face of the camera, you see the two images of the front viewing ports. In some cameras the images are overlapped. You move a mechanism [dial, lever or lens rotation] until the image of the object you wish to focus on fuses into a single image. In other cameras, called 'split image' rangefinders, one of the viewing ports sees the upper half of the image while the lower port sees the bottom half of the image. You focus by aligning the upper and lower halves of the object you wish to focus on.
Both types have a connection to the taking lens so that it will be set to the appropriate focal distance for the object you fused or aligned in the rangefinder window.
[Just to confuse the issue, single lens reflex cameras sometimes have a small split-image rangefinder built into the center of the view seen through the lens itself.]
Rangefinders are like any other cameras as far as price goes. Many are far from expensive. I recently picked up an Argus C-4, clean and fully functional with case for $6.99 + $12.00 S&H or a total of $US18.99.