Is there a way to show an image based on a RNG value?

I want to do a mock card draw - five cards aces and kings. Can a show a card with a given RNG value?

You can use restrictions to conditionally display images, labels, functions, etc. Note the points in the graph. You can set RNG values in the CL, which will be unique for each student, whereas setting a random value in a graph will set the same initial state for each student.

To set a number in a graph to a random integer within a given range generated in CL:

number(`m_{yVariableName}`) : randomGenerator().int(1,5)