shuffle with 4 counters

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.
  • If the range isn't too high you could populate a list with all the numbers, pick a random line and store the value, assign that value to a counter, delete the line and then repeat the process for the other counters. If there are too many numbers though to pick from, this method wouldn't be ideal as the list object is rather slow. Though there are probably array extensions that can be used instead that are faster.

    Alternatively you can assign a value by starting a fastloop an infinate number of times, and stop it when the value is different from all currently assigned values.

  • Alternatively you can assign a value by starting a fastloop an infinate number of times, and stop it when the value is different from all currently assigned values.

    If you have only four counters I think this is the best way to do it.
    - Start a Fastloop
    - On Loop set a random number on all counter
    - On Loop chek if: counter1<>counter2 AND counter1 <> counter3 AND counter1 <> counter 4 + counter2 <> counter3 AND counter2 <> counter4 + counter3 <> counter4, if all of this check are true then stop the loop

    Something like this, press space to randomly set the counters numbers.

Participate now!

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