Implemented basic randomization feature