Generate random number without duplication
Dec 06, 2017
By
Ian Read
Hi Folks!
I'm in need of your help, as I'm trying to create a set of numbers generated in a random order. Basically I have 10 slides, but I don't want them to be played in order. So I thought that the new random number feature in Storyline 360 could help by generating the random number and saying "if number is equal to 6, show slide 6", but what I don't want it to do is generate a random number that's already been used before otherwise it would 'skip' the user back to that slide again.
Any ideas? (I've got to stress that I'm having a bit of an off day so sorry if the glaringly obvious didn't show up, but I thought I'd ask my community friends for some ideas first).
Many thanks!
Ian
7 Replies
Hey Ian,
Lucky you! This is my first contribution post ever, and this peaked my interest! Unfortunately, Storyline does not have if / else options in variable conditions so we have to get a bit creative here unless we wanted to take a dive into Javascript land. Please let me know if this is what you are after.
NOTE: Do not preview just the first slide. If you do, you will need to force quit the application and reopen. Good luck on your project and let me know if you have any questions regarding my setup. :)
A random number generator has been something I've lobbied for since the SL1 beta period. Hopefully, one day...
This post was removed by the author
This post was removed by the author
Hi Russ,
A random number generator is now a feature in Storyline 360. What I was helping Ian with was using that random number to navigate to multiple slides randomly without landing on the same slide twice.
Hi Russ
not sure which version you are using - there is a Random Number variable in SL360
Hi, Wendy and Brent. I'm using SL2. Glad to see they put one in SL360. It would be nice if they'd add it into SL2 also.
Hi Brent
This is spot on thank you!
Just out of curiosity, if the random number selects say 3, and we know that 3 has already been selected, does the "Jump to 1.1 Magic Slide" trigger mean that it will go back to the first slide to re-generate a random number until it finds one it hasn't used?
What makes it pick another number if slide is true?
This discussion is closed. You can start a new discussion or contact Articulate Support.