randomly generate arrays