#NEWLINE# def send_random( self ) : #NEWLINE# #INDENT# maxs = round ( ( len ( self . data ) / 10 ) ) #NEWLINE# read = 0 #NEWLINE# while ( read < len ( self . data ) ) : #NEWLINE# #INDENT# chunk = random . randint ( 1 , maxs ) #NEWLINE# ( yield self . data [ read : ( read + chunk ) ] ) #NEWLINE# read += chunk