original_string: protected function configHitsLottery(array $config)
      {
          list ($trigger, $max) = $config['lottery'];
  
          $value = mt_rand(1, $max);
  
          return ($value <= $trigger);
      }
code: protected function configHitsLottery(array $config)
      {
          list ($trigger, $max) = $config['lottery'];
  
          $value = mt_rand(1, $max);
  
          return ($value <= $trigger);
      }
code_tokens: protected function configHitsLottery ( array $ config ) { list ( $ trigger , $ max ) = $ config [ 'lottery' ] ; $ value = mt_rand ( 1 , $ max ) ; return ( $ value <= $ trigger ) ; }
docstring: Determine if the configuration odds hit the lottery.
  
  @param  array  $config
  @return bool
docstring_tokens: Determine if the configuration odds hit the lottery .