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