XMPlay does remember which tracks have been played, so should not randomly repeat a track until the entire playlist has been played. By default, the history will be reset when the "Random order" switch is toggled, but that can be disabled by adding a "NoRandomReset=1" line to your XMPLAY.INI file. If you still hear a track twice, check that you don't have multiple copies of it in the playlist (you can disable multiple copies with the "No duplicates" option in the "Playlist" options page).