Some randomised trials are double-blind, which means that neither you, nor the doctor treating you, know which treatment you are getting. Your doctor opens a specially coded treatment pack and only the trial organisers know which particular drug it contains. In an emergency your doctor can always find out from the trial coordinators which treatment you are having, or the pharmacy department at the hospital will be able to break the code.
A blind or double-blind trial aims to reduce any bias. Knowing you were having a new treatment, for example, might make you feel more positive, or more negative, and influence what you report to the researchers. Similarly, if the researchers knew that you were having a new treatment for which they had high hopes, this might affect how they judged your response to it.