Random shifts which preserve measure