def srandmember(self, name, number=None):
with self.pipe as pipe:<EOL><INDENT>f = Future()<EOL>res = pipe.srandmember(self.redis_key(name), number=number)<EOL>def cb():<EOL><INDENT>if number is None:<EOL><INDENT>f.set(self.valueparse.decode(res.result))<EOL><DEDENT>else:<EOL><INDENT>f.set([self.valueparse.decode(v) for v in res.result])<EOL><DEDENT><DEDENT>pipe.on_execute(cb)<EOL>return f<EOL><DEDENT>
Return a random member of the set.

:param name: str     the name of the redis key
:return: Future()