#NEWLINE# def decide_experiment( self , experiment_name , default = False ) : #NEWLINE# #INDENT# 'Decides if a experiment needs to be run. Calculate a random number\n           between 1 and 100 and see if its less than a given value.\n           Ex: decider.decide_experiment(config.decider.NEW_BOARD_PIN_TUPLES_READ)\n\n        Args:\n            default: A boolean, the default value to return if the experiment does not exist.\n\n        ' #NEWLINE# default_value = ( 100 if default else 0 ) #NEWLINE# exp_value = self . get_decider_value ( experiment_name , default = default_value ) #NEWLINE# if ( exp_value == 100 ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( exp_value == 0 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( random . randrange ( 0 , 100 , 1 ) < exp_value )