|
|
|
|
|
by tmoertel
1219 days ago
|
|
One easy way to avoid this problem is to give each feature its own independent space of “dice rolls” by hashing the user ids with feature-specific constants before interpreting them as dice rolls: feature1_enabled = hash(user_id + "-feature1") / HASH_MAX < 0.3; # 30% of users.
feature2_enabled = hash(user_id + "-feature2") / HASH_MAX < 0.1; # 10% of users.
|
|