[PD] random gate based on percentages