add random read and write for nand