def randu_array(nchars, size, dtype='<STR_LIT:O>'):
retval = (np.random.choice(RANDU_CHARS, size=nchars * np.prod(size))<EOL>.view((np.unicode_, nchars)).reshape(size))<EOL>if dtype is None:<EOL><INDENT>return retval<EOL><DEDENT>else:<EOL><INDENT>return retval.astype(dtype)<EOL><DEDENT>
Generate an array of unicode strings.