Better random. Fixed a long-standing undetected bug in detecting logins at negative coords. Tests.