So basically from reading the developers tumblr, I think it's just based off of who you have the most positive points with(?). If they're all relatively equal then it will be a randomized chance.