I am conducting an A/B test of my website. I’d like to use sessions to select which version of the website each user will see. However, my concern is making sure approx equal amount of users view each version.
Remember to set a cookie with what version the user is visiting as well, so that you can show them the same version if they visit back later.
rand() was not really “random” in the past, but I believe it was fixed, though dont quote me on that. By habit I am always using mt_rand() so I have not tested rand() the last few years.