Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by IshKebab

6 months ago

This is fine as long as your users don't mind your site randomly changing all the time.

2 comments

IshKebab

Reply

data-ottawa  6 months ago

That’s also a problem for AB testing and solvable (to a degree) by caching assignments

ryan-duve  6 months ago

This can be addressed with some variant of

    random.seed(hash(user_id))

I think the bigger problem is handling the fact that not all users click through the same number of times.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities