Hi,
I’m new with Mathematica and I’m trying to make thirty individual exams assignment for my students. My problem is:
I need to change a number or one word in a string inside WriteLine, but Mathematica does not like it.
WriteLine[file,"Some text that is a question like Solve "RandomChoice[{1,2,3,4,5}]"+"RandomChoice[{1,2,3,4,5}]]
I also tried:
WriteLine[file,"Some text that is a question like Solve ",RandomChoice[{1,2,3,4,5}],"+",RandomChoice[{1,2,3,4,5}]]
WriteLine[file,"Some text that is a question like Solve ";RandomChoice[{1,2,3,4,5}];"+";RandomChoice[{1,2,3,4,5}]]
Nothing works ![]()
Expected out is Some text that is a question like Solve 4+2