Ensuring a Random Number is not Re-picked

Jan 31, 2018

This one might be for the javascript experts in the community, but open to all.

I think someone (and it might have been Owen Holt) posted how you can use javascript to create a random variable and in that same coding ensure any of the x numbers is not re-picked.  I may be imagining this though.  (If this does exist can someone point us to the discussion thread)

With the Storyline 360 and the random variable option, does someone have a method they have come up with to ensure the same random number does not get picked more than once?

27 Replies
Virgil Simpelo

Owen, thank you for contributing this. It took me a few days to find a solution. I thought splicing the array would help, but it didn't seem to be working and presented a "Nan" variable in my output. I'm sure I did something wrong in my javascript, but you detailed it nicely so that I could understand. Thank you so much!