Random Number from a Discrete Set | XM Community
Solved

Random Number from a Discrete Set


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?
icon

Best answer by JenCX 23 July 2019, 21:47

View original

3 replies

Userlevel 7
Badge +11
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
Userlevel 7
Badge +27
A simpler solution:
!

Leave a Reply