http://www.perlmonks.org?node_id=1001133


in reply to Send x% of the users to A, the rest to B

If a user can make multiple requests, and you always want to send a user to the same place, then hashing some user attribute and picking a destination based on that should work. For example, you could hash their username and look at the LSB of the result to decide where to send them.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re: Send x% of the users to A, the rest to B