Extend resty.random functionality

Added some nice functions to resty random library.
Heavily inspired by @bungle 's lua-resty-random library.