The process of assigning trial subjects to treatment or control groups using an element of chance to determine the assignments in order to reduce bias.