#NEWLINE# @ lower ( 'random.expovariate' , types . Float ) #NEWLINE# def expovariate_impl( context , builder , sig , args ) : #NEWLINE# #INDENT# _random = random . random #NEWLINE# _log = math . log #NEWLINE# def expovariate_impl( lambd ) : #NEWLINE# #INDENT# 'Exponential distribution.  Taken from CPython.\n        ' #NEWLINE# return ( ( - _log ( ( 1.0 - _random ( ) ) ) ) / lambd ) #NEWLINE# #UNINDENT# res = context . compile_internal ( builder , context , sig , args ) #NEWLINE# return impl_ret_untracked ( context , builder , sig . return_type , res )