#NEWLINE# @ overload ( np . random . rand ) #NEWLINE# def rand( * size ) : #NEWLINE# #INDENT# if ( len ( size ) == 0 ) : #NEWLINE# #INDENT# def rand_impl( ) : #NEWLINE# #INDENT# return np . random . random ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# def rand_impl( * size ) : #NEWLINE# #INDENT# return np . random . random ( size ) #NEWLINE# #UNINDENT# #UNINDENT# return size