Random Number from a Discrete Set | XM Community
Skip to main content
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?

Best answer by JenCX

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: !
View original

3 replies

JenCX
Level 5 ●●●●●
Forum|alt.badge.img+11
  • Level 5 ●●●●●
  • 684 replies
  • Answer
  • July 23, 2019
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: !

  • Author
  • 1 reply
  • July 23, 2019
Ah, I get it. Thank you so much for your help

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5926 replies
  • July 24, 2019
A simpler solution: !

Leave a Reply