Random online match helps man lose nearly 400 pounds