Random Multiple choice with exclusions

0 favourites
  • 3 posts
From the Asset Store
Be quick and choose the right answer for the shown equation.
  • Hello everybody. I've been looking around but my question right now is a bit precise so I didn't find anything. Here is my problem:

    I want to be able to random choose among some items (each with a number, for example), so the next time I have to choose, the ones chosen before won't be available, like this:

    I have items 1 to 5. Random gets number 2.

    Next cycle, I have items 1, 3, 4 and 5. Random gets 5.

    Next cycle, I have items 1, 3 and 4. And so on.

    The way to treat the items is not really important, I don't mind using objects, variables or whatever, it's just that without programming, I don't know how to approach this problem.

  • This works.

    Set Text to tokenat(replace("1,2,3,4,5,", Text.Text & ",", ""),int(random(4)), ",")

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thanks for the answer, though it's quite the complicated sentence there. I had to break it down to try to understand what was going on there.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)