Construct 3 r137

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
  • I was testing out the advanced Random Permutation feature and i noticed its "index" is handled different then other index's in construct. If you have a range of 20 for example, with an offset of 1, then advancedrandom.permutation(0) ends up being the last value in the order because its wrapping around the list. With arrays etc, the 0 index is always the first one. So something i just need to keep in mind i guess.

    • For a length of 4 it accepts indexes 0, 1, 2, 3. 0 being the first value, so I'm not sure what you mean here. If the value is out of the range it does wrap around, so -1 will be the last value and 4 will be the first value.