Random Riak functions in PHP