SRANDMEMBER's prng kinda sucks

3 views
Skip to first unread message

mattly

unread,
Oct 2, 2010, 7:38:26 PM10/2/10
to Redis DB
While writing tests for some code that makes heavy use of SRANDMEMBER,
I've noticed that it seems to heavily favor certain items in a given
set.

Here's some examples using the ruby client: http://gist.github.com/607299

Is this a known issue with SRANDMEMBER ? Our application requires a
more even distribution.

Thanks,
Matthew Lyon
Reply all
Reply to author
Forward
0 new messages