#NEWLINE# def GaussianSize( cid , sequence_size , target_size ) : #NEWLINE# #INDENT# '\n    Message generator creating gaussian distributed message sizes\n    centered around target_size with a deviance of target_size / 20\n    ' #NEWLINE# num = 1 #NEWLINE# while ( num <= sequence_size ) : #NEWLINE# #INDENT# topic = ( 'mqtt-malaria/%s/data/%d/%d' % ( cid , num , sequence_size ) ) #NEWLINE# real_size = int ( random . gauss ( target_size , ( target_size / 20 ) ) ) #NEWLINE# payload = '' . join ( ( random . choice ( string . hexdigits ) for _ in range ( real_size ) ) ) #NEWLINE# ( yield ( cid , topic , payload ) ) #NEWLINE# num = ( num + 1 )