Random Number from a Discrete Set | XM Community
Skip to main content
Hello all, I am new and have a question with the random number generator.



I want to create a random number, from the set {5, 10, 15, 20} that appears in the question.



The random number generator won't allow me to choose just these, as it only gives a min and max and thus all values between 5 and 20 are in play.



Is there a way to go about this?
Not using the RNG but you could do this with a randomizer and branching logic, with embedded data and piped text.



You could set it up like this (note the branch is just something that is always true):



!



Then in your question, pipe in the embedded data wherever you wanted the number to display:

!
Ah, I get it. Thank you so much for your help
A simpler solution:

!

Leave a Reply