hook random offset