You need to state which story format you are using, as answers can be different for each one.
Without knowing the story format I can only explain in generalities but basically you use a random function to determine the number (1, 2 or 3) part of the image file name. You then concatenate the number with the strings "lr" and ".jpg" to format the image filename and store the result in a $variable.
eg. $variable = "lr" + 3 + ".jpg"
You then use the $variable along with some code to show the image.
Comments
Without knowing the story format I can only explain in generalities but basically you use a random function to determine the number (1, 2 or 3) part of the image file name. You then concatenate the number with the strings "lr" and ".jpg" to format the image filename and store the result in a $variable.
eg. $variable = "lr" + 3 + ".jpg"
You then use the $variable along with some code to show the image.
I was unable to call the image this way:
<img src="$variable">
[img[$variable]] just writes everything as text in Harlowe
Try the following for Harlowe: