The process varies widely depending on the school. Some schools do send out surveys with questions like, "Do you prefer to sleep with the window open or closed?" You know, stuff that could cause friction between new roommates. Others do the process more or less randomly. The residence life staff at the school will likely be more than willing to share with you how roommate assignments are made if you ask.