protected function configHitsLottery(array $config)
    {
        list ($trigger, $max) = $config['lottery'];

        $value = mt_rand(1, $max);

        return ($value <= $trigger);
    }
protected function configHitsLottery(array $config)
    {
        list ($trigger, $max) = $config['lottery'];

        $value = mt_rand(1, $max);

        return ($value <= $trigger);
    }
protected function configHitsLottery ( array $ config ) { list ( $ trigger , $ max ) = $ config [ 'lottery' ] ; $ value = mt_rand ( 1 , $ max ) ; return ( $ value <= $ trigger ) ; }
Determine if the configuration odds hit the lottery.

@param  array  $config
@return bool
Determine if the configuration odds hit the lottery .