add random int callback to rpc client
respect parallel switch