fixed A/B test control group selection

This commit is contained in:
Danny Coates 2017-09-14 10:02:47 -07:00
parent 8e14d3f8f7
commit 137f474b69
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB

View File

@ -22,7 +22,7 @@ const experiments = {
return this.luckyNumber(state) >= 0.5; return this.luckyNumber(state) >= 0.5;
}, },
variant: function(state) { variant: function(state) {
return this.luckyNumber(state) < 0.5 ? 0 : 1; return this.luckyNumber(state) < 0.75 ? 0 : 1;
}, },
luckyNumber: function(state) { luckyNumber: function(state) {
return luckyNumber( return luckyNumber(