optimizations for random element selection
Merge branch 'master' of shire:~/deploy/chat