implement Proxy.random