Created
July 17, 2013 14:40
-
-
Save jasdeepkhalsa/6021196 to your computer and use it in GitHub Desktop.
Simple 80/20 Split Testing in JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rand = Math.floor((Math.random()*10)+1); | |
| if(rand >= 3) | |
| { | |
| a_80(); | |
| } | |
| else | |
| { | |
| b_20(); | |
| } | |
| function a_80(){ | |
| // Do something | |
| } | |
| function b_20(){ | |
| // Do something | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment