Such vending machines are for amusement purposes only and do not actually give a real result.
[1] Nintendo, before entering the video game industry, released their own handheld love tester.
Pinball Hall of Fame: The Gottlieb Collection includes a simulation of a real world love meter.
Similar games can also be found on the Internet or as software applications.
Software love testers are based on randomness, on various user inputs or on a questionnaire and an algorithm.