In a double-blind study, participants are randomly assigned to either the treatment group or the control group. Neither the participants nor the researchers know which group they have been assigned to. This is achieved using a system where treatments are coded, and the codes are only revealed after the study is completed.