#NEWLINE# def binomial( self , size = None , n = 1 , p = 0.5 , ndim = None , dtype = 'int64' , prob = None ) : #NEWLINE# #INDENT# '\n        Sample n times with probability of success p for each trial and\n        return the number of successes.\n\n        If the size argument is ambiguous on the number of dimensions,\n        ndim may be a plain integer to supplement the missing information.\n\n        ' #NEWLINE# if ( prob is not None ) : #NEWLINE# #INDENT# p = prob #NEWLINE# print ( 'DEPRECATION WARNING: the parameter prob to the binomal fct have been renamed to p to have the same name as numpy.' , file = sys . stderr ) #NEWLINE# #UNINDENT# return self . gen ( binomial , size , n , p , ndim = size , dtype = dtype )