Generate Random Array Python Definition