![Split data into groups that have the same mean and variance](https://blogs.sas.com/content/iml/files/2017/04/optex1.png)
A frequently asked question on SAS discussion forums concerns randomly assigning units (often patients in a study) to various experimental groups so that each group has approximately the same number of units. This basic problem is easily solved in SAS by using PROC SURVEYSELECT or a DATA step program. A