Random Komponent

I have 5 different components that I’ve made, and I’d like klck to show one at random. I can’t figure out if there’s a way to do that?

Did not test this, but you can try the following:

  1. Create a global variable: rand
  2. Generate a random number between 1 to 5 every minute in that gv with $tu(rnd, 1, 1, 5)$
  3. Place all 5 komponent inside their individual group
  4. In the Layer’s Visible attribute:
    First komponent: $if(gv(rand) = 1, Always, Never)$
    Second komponent: $if(gv(rand) = 2, Always, Never)$
    Third komponent: $if(gv(rand) = 3, Always, Never)$…