Non Repeating Number Generating in IOS - Possible ??

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi there,

    Is there a way to generate random numbers, but without repeating, for IOS exporter?

    Like if we're picking them from a number pool.

    I'm trying to use this for randomly generating the answers for a math quiz/test. The answers in the test obviously should not repeat within the question. And they must be chosen from a pool randomly.

    Anyone have an idea??

  • Just create a list with each line having a unique number on it (for example, from 0 to 9). This is where the random number will be picked from. Then, when you want a non-repeating random number, randomly select one of the lines, and then get the number that's on that line. Then simply delete the selected line from the list.

    Example here: Please login to see this link.

    You can just copy the list over to your application, and it will generate a random number when you start a loop "generateRandom" once. The outputted number will be in the "_Return" alterable value of the list. You don't need the string or button in your application - they're just there for demonstration purposes. You can change the range of the generator by modifying the "MinNumber" and "MaxNumber" alterable values in the list object.

    This should work with all of the runtimes. Let me know if you have any problems.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!