// Numbas version: finer_feedback_settings {"name": "Random strings with randexp", "extensions": ["randexp"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {"cityname": {"definition": "capitalise(randexp\n '[rtsdfghlcbnm]([aeiou]([rtsdfghlcbnm]|tt|ss|ff))([aeiou]([rtsdfghlcbnm]))?(ford|shire|ton|ville|bury|castle|land)'))", "type": "string", "language": "jme", "parameters": []}}, "ungrouped_variables": ["city2", "city1", "company_name"], "name": "Random strings with randexp", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [], "extensions": ["randexp"], "statement": "
{company_name} is based in {city1}. You are a trader from {city2}.
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"city2": {"definition": "cityname()", "templateType": "anything", "group": "Ungrouped variables", "name": "city2", "description": ""}, "city1": {"definition": "cityname()", "templateType": "anything", "group": "Ungrouped variables", "name": "city1", "description": ""}, "company_name": {"definition": "randexp('(International|Agglomerated|Combined) (Steel|Wool|Widget) (Lifting|Bending|Handling) (Industries|Services)(, (Ltd\\\\.|Co\\\\.|Inc\\\\.))?')", "templateType": "anything", "group": "Ungrouped variables", "name": "company_name", "description": ""}}, "metadata": {"description": "The function randexp, provided by an extension, generates a random string matching the given regular expression.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}