protected function col_random_guess_score($questionstat) {
        if ($this->is_calculated_question_summary($questionstat)) {
            list($min, $max) = $questionstat->get_min_max_of('randomguessscore');
            return $this->format_percentage_range($min, $max);
        } else if (is_null($questionstat->randomguessscore)) {
            return '';
        } else {
            return $this->format_percentage($questionstat->randomguessscore);
        }
    }
protected function col_random_guess_score($questionstat) {
        if ($this->is_calculated_question_summary($questionstat)) {
            list($min, $max) = $questionstat->get_min_max_of('randomguessscore');
            return $this->format_percentage_range($min, $max);
        } else if (is_null($questionstat->randomguessscore)) {
            return '';
        } else {
            return $this->format_percentage($questionstat->randomguessscore);
        }
    }
protected function col_random_guess_score ( $ questionstat ) { if ( $ this -> is_calculated_question_summary ( $ questionstat ) ) { list ( $ min , $ max ) = $ questionstat -> get_min_max_of ( 'randomguessscore' ) ; return $ this -> format_percentage_range ( $ min , $ max ) ; } else if ( is_null ( $ questionstat -> randomguessscore ) ) { return '' ; } else { return $ this -> format_percentage ( $ questionstat -> randomguessscore ) ; } }
An estimate of the fraction a student would get by guessing randomly.
@param \core_question\statistics\questions\calculated $questionstat stats for the question.
@return string contents of this table cell.
An estimate of the fraction a student would get by guessing randomly .