There's a saying "не фартануло" which means something like "не повезло" or "не получилось".
However, where does it come from? There don't seem to be any related words that come to mind, and there doesn't seem to be a verb "фартануть" in use. (Found a dictionary entry like http://argo.academic.ru/5502/%D1%84%D0%B0%D1%80%D1%82%D0%B0%D0%BD%D1%83%D1%82%D1%8C which don't refer to the same meaning).
Does "фартануть" have any other uses or relations to other phrases or is it just a single isolated idiomatic expression "не фартануло" ?