-1

I have this kind of a VI file and I need to add something in order to prevent numbers from repeating. Could you help? problem

Peter O.
  • 32,158
  • 14
  • 82
  • 96
xemxx
  • 27
  • 5

1 Answers1

2

Rather than filtering your list of numbers, you would be better off shuffling an array and taking the first few elements.

  • Excludes any possibility of duplication
  • Removes repeated checks
  • Can be easily adjusted for various ranges
  • Does not require any loops

Shuffle and grab numbers from array

Steve
  • 963
  • 5
  • 16
  • Thank you. My professor insisted on doing it that way, but it is practically impossible, so I decided to quit and go in another direction. – xemxx Jun 10 '21 at 00:31