Real-world challenges to randomization and their solutions