Among most important aspects in conducting a clinical trial are random sampling and allocation of subjects. The processes could be easier if done with familiar software used for data entry and analysis instead of relying on other programs or methods. The objective of this article is to demonstrate random sampling and allocation using SPSS in step-by-step manners using examples most relevant to clinicians as well as researchers in health sciences.