add random sequence generator