PHP Generalized Method for Adaptive Randomization in Trials