Hello there. I'd like to know how to assign a random number to each part of an array while always having a different number.
Example:
DIM A[5] FOR I=0 TO 4 A[I]=RND(5) NEXTIn this example, they should all have a number between 0 and 4, but the problem is that I can't make all of them be different (one 0, one 1, one 2, one 3 and one 4). Should I completely change the structure of my code, or only a small change should work? Thank you in advance for telling me your thoughts.