update random sequence