redict/utils/srandmember
Drew DeVault 50ee0f5be8 all: let's go LGPL over GPL
Based on feedback from interested parties
2024-03-21 20:11:44 +01:00
..
README.md Improve README of better-random-member directory. 2019-02-19 12:01:26 +01:00
showdist.rb all: let's go LGPL over GPL 2024-03-21 20:11:44 +01:00
showfreq.rb all: let's go LGPL over GPL 2024-03-21 20:11:44 +01:00

The utilities in this directory plot the distribution of SRANDMEMBER to evaluate how fair it is.

See http://theshfl.com/redis_sets for more information on the topic that lead to such investigation fix.

showdist.rb -- shows the distribution of the frequency elements are returned. The x axis is the number of times elements were returned, and the y axis is how many elements were returned with such frequency.

showfreq.rb -- shows the frequency each element was returned. The x axis is the element number. The y axis is the times it was returned.