How to "Loop" Int in a range. Blueprint

Ok, so what I’m trying to do is to get the length of an Array, pick a random position and then start a Loop from there.
I would be something like this:
(If I start on 5)
[1, 2, 3, 4, 5, 6, 7] (It’s really hard to see but the highlighted number is 5)
[1, 2, 3, 4, 5, 6, 7] (6)
[1, 2, 3, 4, 5, 6, 7] (7)
[1, 2, 3, 4, 5, 6, 7] (1)
[1, 2, 3, 4, 5, 6, 7] (2)
[1, 2, 3, 4, 5, 6, 7] (3)
[1, 2, 3, 4, 5, 6, 7] (4)

So it starts at 5, goes all the way around and ends in the number before the starting one (4).

This should do it:

Ok I see, you use the modus node

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.