Get subset of results from sorted set randomly instead of lexicological? - Redis -


I have a sort with a key "name", the values ​​are name, and the score is the name that is named Was added to "name".

I am currently receiving ZRANGEBYSCORE for 25 names on a specific date and it seems that I can only get the output in alphabetical format. Is there any possible way to make Random output random?

Ex: Instead of getting "Albert", "Andy", "April", I want to get "Greg", "Albert", "Josh".

This is not the answer if the answer is messy or hacked together, just someone needs to complete it (without exporting all the results for any date and randomly outside of the radius Without sorting)

I used the solution to get the number of values ​​for the score For ZCOUNT , 25 diving, then 25 ZRANGEBYSCORE makes a limit and offset call.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -