#NEWLINE# @ lower ( 'np.random.weibull' , types . Float ) #NEWLINE# def weibull_impl( context , builder , sig , args ) : #NEWLINE# #INDENT# _random = np . random . random #NEWLINE# _log = math . log #NEWLINE# def weibull_impl( beta ) : #NEWLINE# #INDENT# u = ( 1.0 - _random ( ) ) #NEWLINE# return ( ( - _log ( u ) ) ** ( 1.0 / beta ) ) #NEWLINE# #UNINDENT# res = context . compile_internal ( builder , weibull_impl , sig , args ) #NEWLINE# return impl_ret_untracked ( context , builder , sig . return_type , res )