+
    :i                         ^ RI t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RI Ht ^ RIH	t	H
t
 ^ RIHt ^ RIHtHtHt ^ RIHtHt ^ RIHt ^ RIHtHt R	t ! R
 R]	4      tR t ! R R]
]	4      t ! R R]	]4      tR# )    N)types)TestCaseMemoryLeakMixin)_get_proper_funcnext_uint32next_uint64next_double)MT19937	Generator)TypingError)run_in_new_process_cachingSerialMixini   c                   2   a  ] tR t^t o R tR tR tRtV tR# )TestHelperFuncsc                   R  pR pV P                  \        W\        P                  4      ^ ,          ! 4       ^@4       V P                  \        W\        P                  4      ^ ,          ! 4       ^ 4       V P                  \        4      ;_uu_ 4       p\        W\        P                  4       RRR4       V P                  R\        XP                  4      4       V P                  \        4      ;_uu_ 4       p\        W\        P                  4       RRR4       V P                  R\        VP                  4      4       R#   + '       g   i     L; i  + '       g   i     LJ; i)c                      ^ # )     r       [/var/www/html/photoedit/myenv/lib/python3.14/site-packages/numba/tests/test_np_randomgen.pytest_32bit_funcBTestHelperFuncs.test_proper_func_provider.<locals>.test_32bit_func       r   c                      ^@# )@   r   r   r   r   test_64bit_funcBTestHelperFuncs.test_proper_func_provider.<locals>.test_64bit_func   r   r   Nz1Argument dtype is not one of the expected type(s))assertEqualr   npfloat64float32assertRaisesr   int32assertInstr	exceptionr   )selfr   r   raisess   &   r   test_proper_func_provider)TestHelperFuncs.test_proper_func_provider   s   		 	)/%%&( *+-	/)/%%&( *+-	/ {++v_rxxH ,?  !	
 {++v_u}}M ,?  !	
 ,+ ,+s   D?5E?E	E"	c                   \         P                  P                  ^4      pR p\        P                  ! RR7      ! V4      pV P                  \        4      ;_uu_ 4       pV! V4       RRR4       RpV P                  \        P                  ! V\        XP                  4      4      RJRR\        VP                  4       2,           4       R#   + '       g   i     Lm; i)   c                 &    V P                  RR7      # )r   )locr   normalxs   &r   <lambda>2TestHelperFuncs.test_check_types.<locals>.<lambda>6   s    AHHH.r   TcacheNzArgument loc is not one of the expected type\(s\): \[<class 'numba.core.types.*.Float'>, <class 'numba.core.types.*.Integer'>, <class 'int'>, <class 'float'>\]z0Expected pattern not found in exception message.z Found )r    randomdefault_rngnumbanjitr#   r   
assertTrueresearchr&   r'   )r(   rngpy_func
numba_funcr)   expected_patterns   &     r   test_check_types TestHelperFuncs.test_check_types4   s    ii##A&.ZZd+G4
{++vsO ,0 	 	II&F,<,<(=>dJ>c&**+,-.	
 ,+s   	CC	c                R   \         P                  P                  ^4      pR p\        P                  ! 4       ! V4      p\        P                  ! 4       ! V4      pR p\        P                  ! 4       ! V4      p\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3\         P
                  ! \         P                  4      P                  \         P
                  ! \         P                  4      P                  \         P                  3.pV EF>  w  rxp	V P                  WxV	R7      ;_uu_ 4        V P                  \         4      ;_uu_ 4       p
V! W^,
          W4       RRR4       V P#                  R\%        X
P&                  4      4       V P                  \         4      ;_uu_ 4       p
V! WV^,           V	4       RRR4       V P#                  R\%        V
P&                  4      4       V P                  \         4      ;_uu_ 4       p
V! WV^,           V	4       RRR4       V P#                  R\%        V
P&                  4      4       RRR4       EKA  	  \         P
                  ! \         P(                  4      P                  \         P
                  ! \         P(                  4      P                  \         P(                  rpV P                  \         4      ;_uu_ 4       p
V! W^,
          W4       RRR4       V P#                  R\%        X
P&                  4      4       \         P
                  ! \         P*                  4      P                  \         P
                  ! \         P*                  4      P                  \         P*                  rpV P                  \         4      ;_uu_ 4       p
V! WV^,           V	4       RRR4       V P#                  R\%        V
P&                  4      4       V P                  \         4      ;_uu_ 4       p
V! WV^,           V	4       RRR4       V P#                  R\%        V
P&                  4      4       V P                  \         4      ;_uu_ 4       p
V! V^i^d\         P                  4       RRR4       V P#                  R\%        V
P&                  4      4       R#   + '       g   i     ELJ; i  + '       g   i     EL; i  + '       g   i     EL; i  + '       g   i     EK  ; i  + '       g   i     EL; i  + '       g   i     EL]; i  + '       g   i     EL; i  + '       g   i     L; i)r-   c                 *    V P                  WVR R7      # )Tlowhighdtypeendpointintegersr4   rI   rJ   rK   s   &&&&r   r5   9TestHelperFuncs.test_integers_arg_check.<locals>.<lambda>J   s    JJ3JFr   c                 *    V P                  WVR R7      # )FrH   rM   rO   s   &&&&r   r5   rP   O   s    JJ3JGr   rI   rJ   rK   Nzlow is out of boundszhigh is out of boundsz*low is greater than high in given interval)r    r9   r:   r;   r<   iinfouint8minmaxint8uint16int16uint32r$   subTestr#   
ValueErrorr%   r&   r'   uint64int64)r(   r@   rA   rB   numba_func_lownumba_func_endpoint_falsecasesrI   rJ   rK   r)   s   &          r   test_integers_arg_check'TestHelperFuncs.test_integers_arg_checkH   s   ii##A&GZZ\'*
g.H$)JJL$9! XXbhh##RXXbhh%7%;%;RXXFXXbgg""BHHRWW$5$9$9277CXXbii $$bhhryy&9&=&=ryyIXXbhh##RXXbhh%7%;%;RXXFXXbii $$bhhryy&9&=&=ryyIXXbhh##RXXbhh%7%;%;RXXF
 !&Cu#>>&&z22f"3a= 3 *(()
 &&z22fs59 3 +(()
 &&z22f-cq%H 3 +(()) ?> !&4 HHRYY/33HHRYY/33RYY z**f3a5 + 	"  !	

 HHRXX.22HHRXX.22BHH z**fs51 + 	#  !	

 z**f%cq%@ + 	#  !	

 z**fsCbii0 +8  !	
m 322 322 322# ?>>6 +** +** +** +*s   [7Z	A
[Z$A
[.Z1 -[[[.$\ \	Z	[Z.(	[1[<	[[[+	.[?	\	\&	r   N)	__name__
__module____qualname____firstlineno__r*   rD   rb   __static_attributes____classdictcell____classdict__s   @r   r   r      s     
4
(O
 O
r   r   c                  *   \         P                  P                  ^4      p \         P                  P                  ^4      pR p\        P                  ! RR7      ! V4      p\         P
                  ! VP                  ^
4      V! V 4      4      '       g   Q hR# )r-   c                 $    V P                  ^
4      # 
   r9   r3   s   &r   r5   (test_generator_caching.<locals>.<lambda>   s    r   Tr7   N)r    r9   r:   r;   r<   allclose)nb_rngnp_rngrA   rB   s       r   test_generator_cachingru      sg    YY""1%FYY""1%F$G$'0J;;v}}R(*V*<====r   c                   B  a  ] tR t^t o R2R ltR3R ltR tR tR tR t	R t
R	 tR
 tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR tR t R t!R  t"R! t#R" t$R# t%R$ t&R% t'R& t(R' t)R( t*R) t+R* t,R+ t-R, t.R- t/R. t0R/ t1R0 t2R1t3V t4R# )4TestRandomGeneratorsNc                \   \         P                  ! V4      pVf   ^pVfB   \        P                  P	                  VR7      p\        P                  P	                  VR7      pM"\        V! V4      4      p\        V! V4      4      pV! VWE4      p	VP                  VWE4      p
\        V	\        P                  4      '       d6   \        P                  ! V	P                  \        P                  4      '       g   \        V	\        4      '       d#   \        P                  P                  WWeR7       M\        P                  P                  W4       VP                   P"                  R,          pVP                   P"                  R,          pV F!  pV P%                  W,          W,          4       K#  	  R # )Nseed)maxulprK   state)r;   r<   r    r9   r:   r   rA   
isinstancendarray
issubdtyperK   floatingfloattestingassert_array_max_ulpassert_equalbit_generatorr|   assertPreciseEqual)r(   distribution_funcbitgen_typerz   	test_size
test_dtypeulp_precnumba_rng_instancenumpy_rng_instance	numba_res	numpy_resnumba_gen_statenumpy_gen_state
_state_keys   &&&&&&&       r   check_numpy_parity'TestRandomGenerators.check_numpy_parity   sY   
 "JJ'89<D!#!6!6D!6!A!#!6!6D!6!A!*;t+<!=!*;t+<!= &&8&/=	%--.@.7E	 y"**--MM)//2;;77i//JJ++I3; , O JJ##I9 -::@@I,::@@I)J##O$?$3$?A *r   c                z  a \         P                  P                  VR 7      p\         P                  P                  VR 7      p\        VP                  P
                  V4      pV! VP                  P
                  P                  4      p\        P                  ! V3R l4      pV! V4      p	V P                  W4       R# )ry   c                 (   < S! V P                   4      # N)r   )r4   bitgen_funcs   &r   r5   ?TestRandomGenerators._test_bitgen_func_parity.<locals>.<lambda>   s    +aoo*Fr   N)
r    r9   r:   getattrr   ctypesr|   r;   r<   r   )
r(   	func_namer   rz   r   r   
numpy_funcr   rB   r   s
   &&f&      r   _test_bitgen_func_parity-TestRandomGenerators._test_bitgen_func_parity   s    YY222=YY222=/==DDiP
1??FFLLM	ZZ FG
12		5r   c                   \         P                  P                  4       p\        V4       F  w  rgVP	                  4       pWF,          W&   V.V,           p\
        P                  ! V4      p	V P                  \        4      ;_uu_ 4       p
V	! V!   R R R 4       V P                  RV R2\        X
P                  4      4       K  	  R #   + '       g   i     L?; i)Nz	Argument z$ is not one of the expected type(s):)r    r9   r:   	enumeratecopyr;   r<   r#   r   r%   r&   r'   )r(   	dist_funcarg_list
valid_argsinvalid_argsr@   idx_arg	curr_argsnb_dist_funcr)   s   &&&&&      r   _check_invalid_types)TestRandomGenerators._check_invalid_types   s    ii##%"8,IC")I).IN	)I ::i0L"";//6i( 0MMD6!EFF$$% -
 0/s   CCc                    \         P                  P                  4       p\        P                  ! R  4      pV P                  W! V4      4       V P                  \        V4      \        V! V4      4      4       R# )c                     V # r   r   r3   s   &r   r5   ATestRandomGenerators.test_npgen_boxing_unboxing.<locals>.<lambda>   s    !r   N)r    r9   r:   r;   r<   r   id)r(   rng_instancerB   s   &  r   test_npgen_boxing_unboxing/TestRandomGenerators.test_npgen_boxing_unboxing   sV    yy,,.ZZ,
z,'?@L)2j.F+GHr   c                   \         P                  P                  4       p\        P                  ! R  4      p\        P                  ! R 4      pV! V4      p\
        P                  ! 4        \        P                  ! V4      p?V! V4       \
        P                  ! 4        \        P                  ! V4      pV P                  WV^,           4       R# )c                 "    V P                  4       # r   rp   r3   s   &r   r5   ATestRandomGenerators.test_npgen_boxing_refcount.<locals>.<lambda>   s
    QXXZr   c                     V # r   r   r3   s   &r   r5   r      s    Qr   N)
r    r9   r:   r;   r<   gccollectsysgetrefcountr   )r(   r   no_boxdo_boxyref_1ref_2s   &      r   test_npgen_boxing_refcount/TestRandomGenerators.test_npgen_boxing_refcount   s    yy,,./0J'< 


-|


-	*r   c                    . ROp\         \        \        .p\        W!4       F9  w  r4V P	                  W4R7      ;_uu_ 4        V P                  WC4       RRR4       K;  	  R#   + '       g   i     KP  ; i)r   )_func
_func_nameNr   )r   r	   r
   zipr[   r   )r(   
func_namesfuncsr   r   s   &    r   test_bitgen_funcs&TestRandomGenerators.test_bitgen_funcs   sW    B
k;7!$U!7EEAA--j@ BA "8AAAs    A  A1c                   . ROp\         P                  \         P                  \         P                  \         P                  \         P
                  \         P                  \         P                  \         P                  .pR \        .pR pV P                  4       ;_uu_ 4        V P                  VR R ^ R7       R R R 4       R pV FM  pV FD  pV F;  pV P                  WVVR7      ;_uu_ 4        V P                  WGR WV^ 4       R R R 4       K=  	  KF  	  KO  	  . ROpR \        .pR pV FS  pV FJ  pV P                  VVR7      ;_uu_ 4        V P                  WGR V\         P                  ^ 4       R R R 4       KL  	  KU  	  R pV P                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R	 pV P                  V. RO^^R\         P                  R
.RRR\         P                  R.4       R #   + '       g   i     ELH; i  + '       g   i     EKN  ; i  + '       g   i     EK  ; i  + '       g   i     L; i)Nc                 &    V P                  ^ ^d4      # r0   rM   r4   sizerK   s   &&&r   r5   4TestRandomGenerators.test_integers.<locals>.<lambda>
  s    !**Q*<r   r   r   r   c                 *    V P                  ^^
WR7      # )   r   rK   rM   r   s   &&&r   r5   r     s    JJq"4J5r   _size_dtype_bitgenc                 H    V P                  R RV\        P                  R7      # )FTr   )rN   r    bool_r   s   &&&r   r5   r     s    JJudRXXJ>r   r   r   c                 v    V P                  \        P                  ! ^ 4      \        P                  ! ^d4      4      # r0   )rN   r    rT   r^   r   s   &&&r   r5   r   '  s     JJrxx{BHHSM2r   r   r   c                 *    V P                  WVWER 7      # )rI   rJ   r   rK   rL   rM   )r4   rI   rJ   r   rK   rL   s   &&&&&&r   r5   r   -  s    JJ3"  7r   Tr4   Nr   )d   ro         r   r-   r3   )r    r^   r$   rY   rW   r]   rZ   rX   rT   r   r[   r   r   r   r!   r(   
test_sizestest_dtypesbitgen_typesr   r   r   r   s   &       r   test_integers"TestRandomGenerators.test_integers  s   5
xx288RWWyy"))RYYBg =	\\^^##I/3a $ A 6	E%+GE.5 & 7 7//	04eQH7 7  , &   6
g?	E'\\*1 " 3 3++I,0%1F3 3 (  3	\\^^##I/3 $ 5 7	 	!!)"N#$arxx">#&VRZZ"E	GK ^^7 7 73 3 3 ^s0   "G7-H
$H 	H57H	H H25I	c                z  aa . ^^\         P                  3N^^d\         P                  3N^ R\         P                  3N^ R\         P                  3N^ R\         P                  3N^^\         P                  3N^^d\         P                  3N^ R\         P                  3N^ R\         P                  3N^ R\         P                  3NRR\         P                  3N^^\         P                  3N^^d\         P                  3N^ R\         P                  3N^ R\         P                  3N^^\         P                  3N^^d\         P                  3N^ R\         P                  3N^ R\         P                  3NRR\         P                  3N^^\         P
                  3N^^d\         P
                  3N^ R\         P
                  3N^ R\         P
                  3N^^\         P                  3N^^
\         P                  3N^ R\         P                  3N^ R\         P                  3NRR\         P                  3N^^\         P                  3N^^
\         P                  3N^ ^\         P                  3N^ ^\         P                  3N^^\         P                  3N^^
\         P                  3N^ ^\         P                  3N^ ^\         P                  3NR^\         P                  3NpRpV FH  w  oopV P                  SSVR7      ;_uu_ 4        VV3R	 lpV P                  VR
R
W#^ 4       R
R
R
4       KJ  	  R
#   + '       g   i     K_  ; i)r   l   l    l   l    ii  i  rR   c                 ,   < V P                  SSWR 7      # r   rM   )r4   r   rK   rJ   rI   s   &&&r   r5   :TestRandomGenerators.test_integers_cases.<locals>.<lambda>k  s    JJsDtJAr   Nl    l   ll    ii  i  i  ii)      )r    r]   r^   rZ   r$   rX   rY   rT   rW   r[   r   )r(   ra   r   rK   r   rJ   rI   s   &    @@r   test_integers_cases(TestRandomGenerators.test_integers_cases6  s   /
299/
 RYY/
 bii(	/

 &		2/
 "BII./
 288/
 RXX/
 bhh'/
 %rxx0/
 !288,/
  !2BHH=/
 299/
  RYY!/
" 		*#/
$ 
BII&%/
( 288)/
* RXX+/
, rxx(-/
. 	288$//
0 BHH-1/
4 2995/
6 RYY7/
8 
BII&9/
: 		";/
> 288?/
@ BHHA/
B 	288$C/
D rxx E/
F UBHH%G/
J 288K/
L BHHM/
N "((#O/
P bhhQ/
T 277OU/
V BGGW/
X !Y/
Z RWW[/
\ 3 ]/
`  %Cu#D>>B	''	4(,d1> ?> !&>>>s   >L))L:c                   . R	Op\         P                  \         P                  .pR \        .pR pV P	                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FL  pV FC  pV F:  pV P	                  WVVR7      ;_uu_ 4        V P                  WGR WV4       R R R 4       K<  	  KE  	  KN  	  R pV P                  VRR.R
\         P                  .RR.4       R #   + '       g   i     L; i  + '       g   i     K  ; i)Nc                 "    V P                  4       # r   rp   r   s   &&&r   r5   2TestRandomGenerators.test_random.<locals>.<lambda>v  
    !((*r   r   c                 &    V P                  WR 7      # r   rp   r   s   &&&r   r5   r   {  s    !(((*Jr   r   c                 &    V P                  WR 7      # r   rp   r   s   &&&r   r5   r     s    HH$H,r   r   rK   g        r   r   r3   r    r"   r!   r   r[   r   r   r   s   &       r   test_random TestRandomGenerators.test_randomp  s    5
zz2::.g 5	\\^^##I/3 $ 5  K	E%+GE.5 & 7 7//	04eE7 7  , &  -	!!)fg->#'"4vrl	D ^7 7 7   C'C:'C7	:Dc                   . ROp\         P                  \         P                  .pR \        .pR pV P	                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FL  pV FC  pV F:  pV P	                  WVVR7      ;_uu_ 4        V P                  WGR WV4       R R R 4       K<  	  KE  	  KN  	  R pV P                  VRR.R	\         P                  .R
^ .4       R #   + '       g   i     L; i  + '       g   i     K  ; i)Nc                 "    V P                  4       # r   standard_normalr   s   &&&r   r5   ;TestRandomGenerators.test_standard_normal.<locals>.<lambda>      !*;*;*=r   r   c                 &    V P                  WR 7      # r   r   r   s   &&&r   r5   r        45r   r   c                 &    V P                  WR 7      # r   r   r   s   &&&r   r5   r    r  r   r   rK   r   r   r3   r   r   s   &       r   test_standard_normal)TestRandomGenerators.test_standard_normal  s    5
zz2::.g >	\\^^##I/3 $ 5 6	  E%+GE.5 & 7 7//	04eE7 7  , &  6	!!)fg->#'"4vqk	C! ^7 7 7r   c                   . ROp\         P                  \         P                  .pR \        .pR pV P	                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FL  pV FC  pV F:  pV P	                  WVVR7      ;_uu_ 4        V P                  WGR WV4       R R R 4       K<  	  KE  	  KN  	  R pV P                  V. RORR	\         P                  .. R
O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)Nc                 "    V P                  4       # r   standard_exponentialr   s   &&&r   r5   @TestRandomGenerators.test_standard_exponential.<locals>.<lambda>  s    !*@*@*Br   r   c                 &    V P                  WR 7      # r   r
  r   s   &&&r   r5   r    s    """:r   r   c                 (    V P                  WVR 7      # )methodr   rK   r
  )r4   r  r   rK   s   &&&&r   r5   r    s    ""&5"Ir   zigr   r  r   )r   r3   r   r   r   s   &       r   test_standard_exponential.TestRandomGenerators.test_standard_exponential  s    5
zz2::.g C	\\^^##I/3 $ 5 ;	  E%+GE.5 & 7 7//	04eE7 7  , &  J	!!)-H#($

";^	M# ^7 7 7s   C(C;(C8	;Dc                0   . ROp\         P                  \         P                  .pR \        .pR pV FL  pV FC  pV F:  pV P	                  WVVR7      ;_uu_ 4        V P                  WGR WV4       R R R 4       K<  	  KE  	  KN  	  R #   + '       g   i     KY  ; i)Nc                 (    V P                  WR R7      # )inv)r   rK   r  r
  r   s   &&&r   r5   DTestRandomGenerators.test_standard_exponential_inv.<locals>.<lambda>  s    ""5"Ir   r   r   )r    r"   r!   r   r[   r   r   s   &       r   test_standard_exponential_inv2TestRandomGenerators.test_standard_exponential_inv  s    5
zz2::.gJ	E%+GE.5 & 7 7//	04eE7 7  , &  7 7 7s   BBc                   . ROp\         P                  \         P                  .pR \        .pR pV FQ  pV FH  pV F?  pV P	                  WVVR7      ;_uu_ 4        V P                  WGR WV\        4       R R R 4       KA  	  KJ  	  KS  	  R pV P                  V. RORR\         P                  .. RO4       R #   + '       g   i     K  ; i)	Nc                 (    V P                  R WR7      # )      @shaper   rK   standard_gammar   s   &&&r   r5   :TestRandomGenerators.test_standard_gamma.<locals>.<lambda>  s    3T?r   r   c                 (    V P                  WVR 7      # )r  r  )r4   r  r   rK   s   &&&&r   r5   r!    s    55Ar   r  r   r  r   )r4   r3   r   )r    r"   r!   r   r[   r   adjusted_ulp_precr   r   s   &       r   test_standard_gamma(TestRandomGenerators.test_standard_gamma  s    5
zz2::.g@	E%+GE.5 & 7 7//	04e0AC7 7  , &  B	!!)-G#&bjj"9;K	M7 7 7s   B55Cc                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R \        R7       R R R 4       R pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. R	O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   r1   r   s   &&&r   r5   2TestRandomGenerators.test_normal.<locals>.<lambda>  r   r   r   c                 *    V P                  R ^VR7      # )      ?r/   scaler   r1   r   s   &&&r   r5   r(    s    !((s!$(*Or   r   c                 (    V P                  WVR 7      # r+  r1   r4   r/   r,  r   s   &&&&r   r5   r(    s    HHH5r   r   r+  r*  r   r   r4   r4   r3   r   r[   r   r#  r   r(   r   r   r   r   r   s   &     r   test_normal TestRandomGenerators.test_normal  s     6
g 5	\\^^##I/3-> $ @ 
 P	E'\\\??++I,0%,=? @? (  6	!!)-E"02D	F ^ @??   B:1C	:C
	Cc                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R \        R7       R R R 4       R pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. R	O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   uniformr   s   &&&r   r5   3TestRandomGenerators.test_uniform.<locals>.<lambda>  
    !))+r   r   c                 *    V P                  R ^VR7      # )r*  rI   rJ   r   r9  r   s   &&&r   r5   r;  	  s    !))!$)*Or   r   c                 (    V P                  WVR 7      # )r>  r9  )r4   rI   rJ   r   s   &&&&r   r5   r;    s    II#tI4r   r   r>  r0  r1  r2  r3  s   &     r   test_uniform!TestRandomGenerators.test_uniform  s     6
g 6	\\^^##I/3-> $ @ 
 P	E'\\\??++I,0%,=? @? (  5	!!)-D"02D	F ^ @??r6  c                   . R
OpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.RR.R	R.4       R #   + '       g   i     L{; i  + '       g   i     K  ; i)Nc                 "    V P                  4       # r   exponentialr   s   &&&r   r5   7TestRandomGenerators.test_exponential.<locals>.<lambda>  s
    !--/r   r   c                 (    V P                  R VR7      # r*  r,  r   rD  r   s   &&&r   r5   rF  "  s    !--c-*Mr   r   c                 &    V P                  WR 7      # rI  rD  r4   r,  r   s   &&&r   r5   rF  (  s    MMM1r   r,  r   r*  r4   r   r   r3   r   r[   r   r   r3  s   &     r   test_exponential%TestRandomGenerators.test_exponential  s     6
g :	\\^^##I/3 $ 5  N	E'\\\??++I,0%? @? (  
2	!!)gv->#&+V}	> ^ @??   B0,C	0C 	Cc                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  R RVR7      # )r  r*  r  r,  r   gammar   s   &&&r   r5   1TestRandomGenerators.test_gamma.<locals>.<lambda>4  s    !''37; +2 +=r   r   c                 (    V P                  WVR 7      # )rS  rT  )r4   r  r,  r   s   &&&&r   r5   rV  <  s    GG%4G8r   r   rS  r  r*  r   r1  r2  r3  s   &     r   
test_gammaTestRandomGenerators.test_gamma-  s     6
g=	E'\\\??++I,0%,=? @? (  9	!!)-G"24F	H @??   A=	=Bc                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  R RVR7      # )r*  g      @abr   betar   s   &&&r   r5   0TestRandomGenerators.test_beta.<locals>.<lambda>H  s    !&&3#D&*Ir   r   c                 (    V P                  WVR 7      # )r^  ra  )r4   r_  r`  r   s   &&&&r   r5   rc  P  s    !t)Dr   r   r^  rX  r1  r2  r3  s   &     r   	test_betaTestRandomGenerators.test_betaA  s     6
gI	E'\\\??++I,0%,=? @? (   E	!!)-?"24F	H @??r[  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  ^^VR7      # )r   dfnumdfdenr   fr   s   &&&r   r5   -TestRandomGenerators.test_f.<locals>.<lambda>[  s    !##AQT#*Jr   r   c                 (    V P                  WVR 7      # )ri  rl  )r4   rj  rk  r   s   &&&&r   r5   rn  c  s    CCetC4r   r   ri  )r   r-   r   r1  r2  r3  s   &     r   test_fTestRandomGenerators.test_fT  s     6
gJ	E'\\\??++I,0%,=? @? (  5	!!)-G".0B	D @??r[  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  VRR.^R.RR	.4       R #   + '       g   i     Kw  ; i)
Nc                 (    V P                  ^VR7      # r   dfr   	chisquarer   s   &&&r   r5   5TestRandomGenerators.test_chisquare.<locals>.<lambda>o  s    !+++*Fr   r   c                 &    V P                  WR 7      # ru  rw  r4   rv  r   s   &&&r   r5   ry  w  s    KK2K)r   rv  r   r4   r   r   r3   r2  r3  s   &     r   test_chisquare#TestRandomGenerators.test_chisquareh  s     6
gF	E'\\\??++I,0%,=? @? (  *	!!)dF^#$d)c6]	< @??r[  c                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VR.R.R	.4       R #   + '       g   i     Lx; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   standard_cauchyr   s   &&&r   r5   ;TestRandomGenerators.test_standard_cauchy.<locals>.<lambda>  r  r   r   c                 &    V P                  VR 7      # r   r  r   s   &&&r   r5   r    s    !*;*;*;*Fr   r   c                 &    V P                  VR 7      # r  r  )r4   r   s   &&r   r5   r    s    1#4#4$#4#?r   r   r   r   r3   rM  r3  s   &     r   test_standard_cauchy)TestRandomGenerators.test_standard_cauchy|  s     6
g >	\\^^##I/3 $ 5  G	E'\\\??++I,0%? @? (   @	!!)fX#'&6(	4 ^ @??s   B-,C 	-B=	 Cc                   . ROpR \         .pR pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.^R.RR	.4       R #   + '       g   i     Kr  ; i)
Nc                 (    V P                  R VR7      #       ?r_  r   paretor   s   &&&r   r5   2TestRandomGenerators.test_pareto.<locals>.<lambda>  s    !((St(*Dr   r   c                 &    V P                  WR 7      # r  r  r4   r_  r   s   &&&r   r5   r    s    ahhh&>r   r_  r   r4   r   r   r3   rM  r3  s   &     r   test_pareto TestRandomGenerators.test_pareto  s     6
gD	E'\\\??++I,0%? @? (   ?	!!)c6]#$d)c6]	< @??   A8	8B	c                   . ROpR \         .pR pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.^R.RR	.4       R #   + '       g   i     Kr  ; i)
Nc                 (    V P                  R VR7      # r  weibullr   s   &&&r   r5   3TestRandomGenerators.test_weibull.<locals>.<lambda>  s    !))c)*Er   r   c                 &    V P                  WR 7      # r  r  r  s   &&&r   r5   r    s    aii!i&?r   r_  r   r4   r   r   r3   rM  r3  s   &     r   test_weibull!TestRandomGenerators.test_weibull  s     6
gE	E'\\\??++I,0%? @? (   @	!!)c6]#$d)c6]	< @??r  c                   . ROpR \         .pR pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.RR	.RR
.4       R #   + '       g   i     Kr  ; i)Nc                 (    V P                  R VR7      # )      ?r  powerr   s   &&&r   r5   1TestRandomGenerators.test_power.<locals>.<lambda>  s    !''Dt'*Dr   r   c                 &    V P                  WR 7      # r  r  r  s   &&&r   r5   r    s    aggg&=r   r_  r   r  r4   r   r   r3   rM  r3  s   &     r   
test_powerTestRandomGenerators.test_power  s     6
gD	E'\\\??++I,0%? @? (   >	!!)c6]#',f	? @??r  c                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R \        R7       R R R 4       R pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. R	O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   laplacer   s   &&&r   r5   3TestRandomGenerators.test_laplace.<locals>.<lambda>  r<  r   r   c                 *    V P                  R RVR7      # r  r*  r+  r  r   s   &&&r   r5   r    s    II#StI4r   r   c                 (    V P                  WVR 7      # r.  r  r/  s   &&&&r   r5   r    s    II#I6r   r   r+  r  r*  r   r1  r2  r3  s   &     r   test_laplace!TestRandomGenerators.test_laplace  s     6
g 6	\\^^##I/3-> $ @ 
5	E'\\\??++I,0%,=? @? (  7	!!)-E"24F	H! ^ @??r6  c                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R \        R7       R R R 4       R pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. R	O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   logisticr   s   &&&r   r5   4TestRandomGenerators.test_logistic.<locals>.<lambda>  
    !**,r   r   c                 *    V P                  R RVR7      # r  r  r   s   &&&r   r5   r    s    JJ3StJ4r   r   c                 (    V P                  WVR 7      # r.  r  r/  s   &&&&r   r5   r    s    JJ3$J7r   r   r+  r  r1  r2  r3  s   &     r   test_logistic"TestRandomGenerators.test_logistic  s     6
g 7	\\^^##I/3-> $ @ 
5	E'\\\??++I,0%,=? @? (  8	!!)-E"24F	H! ^ @??r6  c                   . ROpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R \        R7       R R R 4       R pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. R	O4       R #   + '       g   i     L; i  + '       g   i     K  ; i)
Nc                 "    V P                  4       # r   	lognormalr   s   &&&r   r5   5TestRandomGenerators.test_lognormal.<locals>.<lambda>
  s
    !++-r   r   c                 *    V P                  R RVR7      # )r  r*  meansigmar   r  r   s   &&&r   r5   r    s    KKS$K7r   r   c                 (    V P                  WVR 7      # )r  r  )r4   r  r  r   s   &&&&r   r5   r    s    KKTTK:r   r   r  r  r1  r2  r3  s   &     r   test_lognormal#TestRandomGenerators.test_lognormal  s     6
g 8	\\^^##I/3-> $ @ 
8	E'\\\??++I,0%,=? @? (  ;	!!)-F"24F	H! ^ @??r6  c                   . R
OpR \         .pR pV P                  4       ;_uu_ 4        V P                  VR R R7       R R R 4       R pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.RR.R	R.4       R #   + '       g   i     L{; i  + '       g   i     K  ; i)Nc                 "    V P                  4       # r   rayleighr   s   &&&r   r5   4TestRandomGenerators.test_rayleigh.<locals>.<lambda>&  r  r   r   c                 (    V P                  R VR7      # rH  r  r   s   &&&r   r5   r  +  s    !**3T**Jr   r   c                 &    V P                  WR 7      # rK  r  rL  s   &&&r   r5   r  2  s    !**5**Lr   r,  r   r*  r4   r   r   r3   rM  r3  s   &     r   test_rayleigh"TestRandomGenerators.test_rayleigh  s     6
g 7	\\^^##I/3 $ 5  K	E'\\\??++I,0%? @? (   M	!!)gv->#&+V}	> ^ @??rP  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  VRR.^R.RR	.4       R #   + '       g   i     Kw  ; i)
Nc                 (    V P                  ^VR7      # rt  
standard_tr   s   &&&r   r5   6TestRandomGenerators.test_standard_t.<locals>.<lambda>=  s    !,,!$,*Gr   r   c                 &    V P                  WR 7      # r{  r  r|  s   &&&r   r5   r  E  s    q||r|'Er   rv  r   r4   r   r   r3   r2  r3  s   &     r   test_standard_t$TestRandomGenerators.test_standard_t6  s     6
gG	E'\\\??++I,0%,=? @? (   F	!!)dF^#$d)c6]	< @??r[  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  R RVR7      # )r  r*  r  r,  r   waldr   s   &&&r   r5   0TestRandomGenerators.test_wald.<locals>.<lambda>P  s    !&&c4&*Pr   r   c                 (    V P                  WVR 7      # )r  r  )r4   r  r,  r   s   &&&&r   r5   r  X  s    FFF5r   r   r  r  r1  r2  r3  s   &     r   	test_waldTestRandomGenerators.test_waldI  s     6
gP	E'\\\??++I,0%,=? @? (  6	!!)-F"24F	H @??r[  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  VRR.RR	.RR
.4       R #   + '       g   i     Kw  ; i)Nc                 (    V P                  R VR7      # )r  pr   	geometricr   s   &&&r   r5   5TestRandomGenerators.test_geometric.<locals>.<lambda>d  s    !++4+*Hr   r   c                 &    V P                  WR 7      # r  r  r4   r  r   s   &&&r   r5   r  l  s    akkAk&Ar   r  r   r  r4   r   r   r3   r2  r3  s   &     r   test_geometric#TestRandomGenerators.test_geometric]  s     6
gH	E'\\\??++I,0%,=? @? (   B	!!)c6]#',f	? @??r[  c                   . ROpR \         .pR pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  VRR.^R.RR	.4       R #   + '       g   i     Kr  ; i)
Nc                 (    V P                  R VR7      # )r*  r  zipfr   s   &&&r   r5   0TestRandomGenerators.test_zipf.<locals>.<lambda>w  s    !&&3T&*Br   r   c                 &    V P                  WR 7      # r  r  r  s   &&&r   r5   r  ~  s    affqf&<r   r_  r   r4   r   r   r3   rM  r3  s   &     r   	test_zipfTestRandomGenerators.test_zipfp  s     6
gB	E'\\\??++I,0%? @? (   =	!!)c6]#$d)c6]	< @??r  c                   . ROpR \         .pR pV FC  pV F:  pV P                  WER7      ;_uu_ 4        V P                  W5R VR 4       R R R 4       K<  	  KE  	  R pV P                  V. RO. RO. RO4       R #   + '       g   i     Kr  ; i)Nc                 ,    V P                  ^ ^^VR7      # )r   leftmoderightr   
triangularr   s   &&&r   r5   6TestRandomGenerators.test_triangular.<locals>.<lambda>  s    LLaaqtL<r   r   c                 (    V P                  WW4R 7      # )r  r  )r4   r  r  r  r   s   &&&&&r   r5   r     s    LLdULFr   r   r  )r   r   r   r   r4   r4   r4   r3   rM  r3  s   &     r   test_triangular$TestRandomGenerators.test_triangular  s     6
g=	E'\\\??++I,0%? @? (  G	!!)-N"13J	L @??r  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  VRR.^R.RR	.4       R #   + '       g   i     Kw  ; i)
Nc                 (    V P                  ^VR7      # )   lamr   poissonr   s   &&&r   r5   3TestRandomGenerators.test_poisson.<locals>.<lambda>  s    !)))*Fr   r   c                 &    V P                  WR 7      # )r  r
  )r4   r	  r   s   &&&r   r5   r    s    		c	(Er   r	  r   r4   r   r   r3   r2  r3  s   &     r   test_poisson!TestRandomGenerators.test_poisson  s     6
gF	E'\\\??++I,0%,=? @? (   F	!!)eV_#%t*sFm	= @??r[  c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  ^RVR7      # r-   皙?nr  r   negative_binomialr   s   &&&r   r5   =TestRandomGenerators.test_negative_binomial.<locals>.<lambda>  s    !s6r   r   c                 (    V P                  WVR 7      # r  r  r4   r  r  r   s   &&&&r   r5   r    s    !t4r   r   r  r-   r  r   r1  r2  r3  s   &     r   test_negative_binomial+TestRandomGenerators.test_negative_binomial  s     6
g7	E'\\\??++I,0%,=? @? (  5	!!)-?"13E	G @??r[  c                  a R.pR\         .p. ROp\        P                  ! VVV4       FE  w  rEoV P                  WESR7      ;_uu_ 4        V3R lpV P	                  WeRVR^ 4       RRR4       KG  	  R#   + '       g   i     K\  ; i)ro   Nr   r   _axisc                 R   < V P                  VR 7      pV P                  VSR7       V# r  axis)r9   shuffle)r4   r   rK   arrr!  s   &&& r   r   4TestRandomGenerators.test_shuffle.<locals>.dist_func  s(    (((-CIIcI.Jr   r   )r   r-   r   )r   	itertoolsproductr[   r   )r(   r   r   axesr   r   r   r!  s   &      @r   test_shuffle!TestRandomGenerators.test_shuffle  s    "^
g%.%6%6z7C7;&=!EE E%HH ''	(,eT()+ IH&= IHHs   
A44Bc                    \         P                  ! . 4      p\         P                  ! . 4      pR  p\        P                  ! V4      pR pV P	                  V! V! 4       V4      V! V! 4       V4      4       R# )c                 (    V P                  V4       V# r   r&  r4   r'  s   &&r   r   :TestRandomGenerators.test_shuffle_empty.<locals>.dist_func  s    IIcNJr   c                  @    \         P                  P                  ^4      # r   r    r9   r:   r   r   r   r5   9TestRandomGenerators.test_shuffle_empty.<locals>.<lambda>      bii++A.r   Nr    arrayr;   r<   r   r(   r_  r`  r   nb_funcr@   s   &     r   test_shuffle_empty'TestRandomGenerators.test_shuffle_empty  sX    HHRLHHRL	 **Y'.	#% 3WSUA5FGr   c           	        V P                  4        R  pV P                  VRR.\        P                  ! . RO4      ^ .RR.4       \        P                  P                  ^4      pV P                  \        4      ;_uu_ 4       p\        P                  ! V4      ! V\        P                  ! . RO4      ^4       RRR4       V P                  R\        XP                  4      4       R#   + '       g   i     L7; i)c                 *    V P                  WR 7       V# r$  r0  r4   r'  r%  s   &&&r   r   :TestRandomGenerators.test_shuffle_check.<locals>.dist_func  s    IIcI%Jr   r4   r%  N)Axis is out of bounds for the given arrayr      r   disable_leak_checkr   r    r8  r9   r:   r#   
IndexErrorr;   r<   r%   r&   r'   r(   r   r@   r)   s   &   r   test_shuffle_check'TestRandomGenerators.test_shuffle_check  s    !	 	!!)c6]#%88G#4a"83*	F ii##A&z**fJJy!#rxx'8!< +7  !	
 +*s    5C$$C4	c                   R.pR\         .p. ROp\        P                  ! VVV4       FB  w  rEpV P                  WEVR7      ;_uu_ 4        R pV P	                  WuRVR^ 4       RRR4       KD  	  \
        P                  ! R 4      p\        P                  P                  4       pVP                  RR7      p	V	P                  4       p
V! W4       V P                  W4       R#   + '       g   i     K  ; i)	ro   Nr   c                 L    V P                  VR 7      pV P                  V^R7      # r#  )r9   permutation)r4   r   rK   r'  s   &&& r   r   8TestRandomGenerators.test_permutation.<locals>.dist_func  s%    (((-C==1=55r   c                 $    V P                  V4      # r   rM  )r@   r'  s   &&r   r5   7TestRandomGenerators.test_permutation.<locals>.<lambda>  s    0Dr   r  r   )r   r-   r   )ro   r   )r   r)  r*  r[   r   r;   r<   r    r9   r:   r   r   )r(   r   r   r+  r   r   r!  r   r@   r'  arr_cpys   &          r   test_permutation%TestRandomGenerators.test_permutation  s    "^
g %.%6%6z7C7;&=!EE E%HH6 ''	(,eT()+	 IH&= JJDE	ii##%jjhj'((*#- IHHs   	C  C1c           	        V P                  4        R  pV P                  VRR.\        P                  ! . RO4      ^ .RR.4       \        P                  P                  ^4      pV P                  \        4      ;_uu_ 4       p\        P                  ! V4      ! V\        P                  ! . RO4      ^4       RRR4       V P                  R\        XP                  4      4       V P                  \        4      ;_uu_ 4       p\        P                  ! V4      ! V\        P                  ! . RO4      R4       RRR4       V P                  R\        VP                  4      4       R#   + '       g   i     L; i  + '       g   i     LJ; i)c                 &    V P                  WR 7      # r?  rP  r@  s   &&&r   r   BTestRandomGenerators.test_permutation_exception.<locals>.dist_func  s    ===00r   r4   r%  NrB  rC  rS  rE  rH  s   &   r   test_permutation_exception/TestRandomGenerators.test_permutation_exception  s   !	1 	!!)c6]#%88G#4a"83*	F ii##A&z**fJJy!#rxx'8!< +7  !	
 z**fJJy!#rxx'8"= +7  !	
 +* +*s    5E#?5E6#E3	6F	c                    \         P                  ! . 4      p\         P                  ! . 4      pR  p\        P                  ! V4      pR pV P	                  V! V! 4       V4      V! V! 4       V4      4       R# )c                 $    V P                  V4      # r   rP  r1  s   &&r   r   >TestRandomGenerators.test_permutation_empty.<locals>.dist_func'  s    ==%%r   c                  @    \         P                  P                  ^4      # r   r4  r   r   r   r5   =TestRandomGenerators.test_permutation_empty.<locals>.<lambda>+  r6  r   Nr7  r9  s   &     r   test_permutation_empty+TestRandomGenerators.test_permutation_empty#  sX    HHRLHHRL	& **Y'.	#% 3WSUA5FGr   c           
        . ROpR \         .pR p\        P                  ! W4       F<  w  rEV P                  WER7      ;_uu_ 4        V P	                  W5R VR 4       R R R 4       K>  	  R p. ROpV P                  V. ROV. R	O4       \        P                  P                  4       pV.V,           p\        P                  ! V4      pV P                  \        4      ;_uu_ 4       p	VP                  4       p
^ V
^&   V! V
!   R R R 4       V P                  R\        X	P                   4      4       V P                  \        4      ;_uu_ 4       p	VP                  4       p
R
V
^&   V! V
!   R R R 4       V P                  R\        V	P                   4      4       V P#                  4        R #   + '       g   i     EK  ; i  + '       g   i     L; i  + '       g   i     Lo; i)Nc                 *    V P                  R RVR7      #       @g      4@r  noncentral_chisquarer   s   &&&r   r5   @TestRandomGenerators.test_noncentral_chisquare.<locals>.<lambda>6  s    ""34"8r   r   c                 (    V P                  WVR 7      # )rv  noncr   rg  )r4   rv  rl  r   s   &&&&r   r5   ri  =  s    ""b$"?r   zdf <= 0nonc < 0r   )rf  r  r   rk  r1  rR  )r   r)  r*  r[   r   r   r    r9   r:   r;   r<   r#   r\   r   r%   r&   r'   rF  r(   r   r   r   r   r   r   r@   r   r)   r   s   &          r   test_noncentral_chisquare.TestRandomGenerators.test_noncentral_chisquare/  s    6
g9	'//
INEE;;''	(,eT; <; J
@	%
!!)-C",.@	B ii##%UZ'
zz),z**f")IIaL)$	 +
 	iV%5%5!67z**f")IIaL)$	 +
 	j#f&6&6"78!7 <;; +* +*s$   F! F6G	!F36G		G	c                   . ROpR \         .pR p\        P                  ! W4       FA  w  rEV P                  WER7      ;_uu_ 4        V P	                  W5R VR \
        4       R R R 4       KC  	  R p. ROpV P                  V. R	OV. R
O4       \        P                  P                  4       pV.V,           p\        P                  ! V4      pV P                  \        4      ;_uu_ 4       p	VP                  4       p
^ V
^&   V! V
!   R R R 4       V P                  R\!        X	P"                  4      4       V P                  \        4      ;_uu_ 4       p	VP                  4       p
^ V
^&   V! V
!   R R R 4       V P                  R\!        V	P"                  4      4       V P                  \        4      ;_uu_ 4       p	VP                  4       p
RV
^&   V! V
!   R R R 4       V P                  R\!        V	P"                  4      4       V P%                  4        R #   + '       g   i     EK  ; i  + '       g   i     EL); i  + '       g   i     L; i  + '       g   i     L; i)Nc                 ,    V P                  R RR VR7      # re  noncentral_fr   s   &&&r   r5   8TestRandomGenerators.test_noncentral_f.<locals>.<lambda>]  s    NN3cN5r   r   c                 (    V P                  WW4R 7      # )rj  rk  rl  r   rs  )r4   rj  rk  rl  r   s   &&&&&r   r5   ru  e  s    NN$NJr   z
dfnum <= 0z
dfden <= 0rm  r   )rf  r  rf  r   rw  r  rR  )r   r)  r*  r[   r   r#  r   r    r9   r:   r;   r<   r#   r\   r   r%   r&   r'   rF  rn  s   &          r   test_noncentral_f&TestRandomGenerators.test_noncentral_fV  s    6
g6	'//
INEE;;''	(,eT(9; <; JK	*
!!)-O",.E	G ii##%UZ'
zz),z**f")IIaL)$	 +
 	lC(8(8$9:z**f")IIaL)$	 +
 	lC(8(8$9:z**f")IIaL)$	 +
 	j#f&6&6"78!E <;; +** +* +*s0   H%H!H51IH!H2	5I	I	c           
        . R	OpR \         .pR p\        P                  ! W4       F<  w  rEV P                  WER7      ;_uu_ 4        V P	                  W5R VR 4       R R R 4       K>  	  R pRR
.pV P                  VRR.VRR.4       \        P                  P                  ^4      pV.V,           p\        P                  ! V4      pR^\        P                  3 Fh  p	V P                  \        4      ;_uu_ 4       p
VP                  4       pW^&   V! V!   R R R 4       V P                  R\!        X
P"                  4      4       Kj  	  V P%                  4        R #   + '       g   i     EKA  ; i  + '       g   i     L`; i)Nc                 (    V P                  R VR7      # )333333?r  	logseriesr   s   &&&r   r5   5TestRandomGenerators.test_logseries.<locals>.<lambda>  s    KK$K'r   r   c                 &    V P                  WR 7      # r  r}  r  s   &&&r   r5   r    s    KK!K'r   r|  r  r   r4   zp < 0, p >= 1 or p is NaNr   r   r3   g)r   r)  r*  r[   r   r   r    r9   r:   r;   r<   nanr#   r\   r   r%   r&   r'   rF  )r(   r   r   r   r   r   r   r@   r   _pr)   r   s   &           r   test_logseries#TestRandomGenerators.test_logseries  sG    6
g(	'//
INEE;;''	(,eT; <; J
(	4[
!!)c6]",sFm	= ii##A&UZ'
zz),BFF#B"":..&&OO-	!!i(	 /
 MM5s6;K;K7LM $ 	!- <;; /.s   E7E*E'*E:c                "   . ROpR \         .pR pV FH  pV F?  pV P                  WER7      ;_uu_ 4        V P                  W5R VR \        4       R R R 4       KA  	  KJ  	  R pV P	                  V. RO. RO. RO4       R #   + '       g   i     Kw  ; i)Nc                 *    V P                  ^RVR7      # r  binomialr   s   &&&r   r5   4TestRandomGenerators.test_binomial.<locals>.<lambda>  s    JJcJ-r   r   c                 (    V P                  WVR 7      # r  r  r  s   &&&&r   r5   r    s    JJdJ+r   r   r  r  r1  r2  r3  s   &     r   test_binomial"TestRandomGenerators.test_binomial  s     6
g.	E'\\\??++I,0%,=? @? (  ,	!!)-?"13E	G @??r[  c                   aa . ROpRpV FG  w  ooV P                  SSR7      ;_uu_ 4        VV3R lpV P                  VRRVR^ 4       RRR4       KI  	  R#   + '       g   i     K^  ; i)r-   N)r  r  c                 ,   < V P                  SSVR 7      # r  r  )r4   r   rK   r  r  s   &&&r   r5   :TestRandomGenerators.test_binomial_cases.<locals>.<lambda>  s    JJq!$J/r   ))r-   r  )2   ?)r   g?)r   r  )r[   r   )r(   ra   r   r   r  r  s   &   @@r   test_binomial_cases(TestRandomGenerators.test_binomial_cases  sf    
 DAqQ''0	''	4(,dD!= (' '''s   AA)c                   V P                  R 4      ;_uu_ 4        \        P                  P                  ^ 4      p\        P                  P                  ^ 4      p\        P
                  R 4       pV! V4      pVP                  V4      pV P                  WE4       RRR4       V P                  R4      ;_uu_ 4        \        P                  P                  ^ 4      p\        P                  P                  ^ 4      p\        P
                  R 4       pV! V4      pVP                  V4      pV P                  WE4       RRR4       R#   + '       g   i     L; i  + '       g   i     R# ; i)zinfinite loop issue #9493c                 (    V P                  R R^d4      # )i  r  r  gens   &r   foo?TestRandomGenerators.test_binomial_specific_issues.<locals>.foo      ||Cc22r   Nz,issue with midrange value branch #9493/#9734c                 (    V P                  R R^d4      # )i-  r  r  r  s   &r   r  r    r  r   )r[   r    r9   r:   r;   jitrA   r   )r(   gen1gen2r  gotexpecteds   &     r   test_binomial_specific_issues2TestRandomGenerators.test_binomial_specific_issues  s   
 \\566 99((+D99((+DYY3 3 d)C{{4(H##C2 7 \\HII 99((+D99((+DYY3 3 d)C{{4(H##C2 JI 76 JIIs   A?E:A?EE	E'	r   )NNNNr   r   )5rd   re   rf   rg   r   r   r   r   r   r   r   r   r   r  r  r  r$  r4  r@  rN  rY  re  rp  r}  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r  r,  r;  rI  rU  rZ  ra  ro  rx  r  r  r  r  rh   ri   rj   s   @r   rw   rw      s    &AP
6I+A0Gf8>tD2C4M6EM(F4F4>0H(H&D(<(40<$<$?$H8H8H8>0<&H(?&<$L(=&G0+"H
*.0
.
H%"N,"\ "DG*=  3  3r   rw   c                   &   a  ] tR tRt o R tRtV tR# )TestGeneratorCachingi  c                   \         P                  P                  ^4      p\         P                  P                  ^4      p\        P                  ! R RR7      pV P                  VP                  ^
4      V! V4      4       V P                  VP                  ^
4      V! V4      4       \        \        4      pV P                  VR,          ^ 4       R# )r-   c                 $    V P                  ^
4      # rn   rp   r3   s   &r   r5   =TestGeneratorCaching.test_randomgen_caching.<locals>.<lambda>  s    !((2,r   Tr7   exitcodeN)	r    r9   r:   r;   r<   r   r   ru   r   )r(   rs   rt   rB   ress   &    r   test_randomgen_caching+TestGeneratorCaching.test_randomgen_caching  s    &&q)&&q)ZZ 6dC
b 1:f3EFb 1:f3EF()?@Z!,r   r   N)rd   re   rf   rg   r  rh   ri   rj   s   @r   r  r    s     
- 
-r   r  )r;   numpyr    r   r)  r   r>   r   numba.tests.supportr   r   !numba.np.random.generator_methodsr   numba.np.random.generator_corer   r	   r
   numpy.randomr   r   numba.core.errorsr   r   r   r#  r   ru   rw   r  r   r   r   <module>r     sj      
  	 	  9 > P P + ) G  ~
h ~
B>I3?H I3X"-8[ -r   