deterministic percentage implementation