diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php
index 340a2ea612f..755931e4731 100644
--- a/mod/quiz/edit.php
+++ b/mod/quiz/edit.php
@@ -100,7 +100,7 @@ function module_specific_controls($totalnumber, $recurse, $category, $cmid, $cmo
'
';
$attributes = array();
$attributes['disabled'] = $cmoptions->hasattempts ? 'disabled' : null;
- $select = html_select::make($randomcount, 'randomcount', '1', null, $attributes);
+ $select = html_writer::select($randomcount, 'randomcount', '1', null, $attributes);
$out .= get_string('addrandom', 'quiz', $select);
$out .= '';
$out .= '';