U
    sVcZ                  	   @   s   d dl Z d dlZdedddZejee je j ej	dfdZ
ejed	eeed
de j ejdfdZdejdddZedddZdS )    N       ?)pc                 C   s   t jj|  |kS )N)nprandomZrand)sizer   r   r   ;/tmp/pip-unpacked-wheel-xj8nt62q/pandas/_testing/_random.pyrandbool   s    r	      )dtype i  i  OT)returnc                 C   s8   t jjt| t | |dt j| f|}||S )z,
    Generate an array of byte strings.
    )r   replace)	r   r   choiceRANDS_CHARSprodviewstr_ZreshapeZastype)ncharsr   r   r   retvalr   r   r   rands_array   s    r   c                 C   s   d tjt| S )zt
    Generate one random byte string.

    See `rands_array` if you want to create an array of random strings.

    r   )joinr   r   r   r   )r   r   r   r   rands   s    r   )r   r   )r   T)stringZnumpyr   floatr	   arraylistascii_lettersdigitsr   r   r   mapchrrangeZunicode_ZRANDU_CHARSZndarrayr   strr   r   r   r   r   <module>   s    