// Numbas version: exam_results_page_options {"name": "Random image", "extensions": [], "custom_part_types": [], "resources": [["images/new94_1.jpg", "/srv/numbas/media/images/new94_1.jpg"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variables": {"file": {"definition": "random('smallgrinningcat.jpg','smallsnowman.jpg','sentientbanana.jpg')", "name": "file"}, "url": {"definition": "'http://somethingorotherwhatever.com/'+file", "name": "url"}}, "extensions": [], "functions": {"image": {"parameters": [["url", "string"]], "language": "javascript", "definition": "return $('').attr('src',url);", "type": "html"}}, "advice": "", "progress": "not-for-use", "type": "question", "statement": "
Cartoon!
\nFile: {file}
\nUrl: {url}
\n{image(url)}
", "tags": [], "parts": [{"marks": 0.0, "prompt": "\n