Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Excluding like-results in loops

$
0
0

Hi all!

 

Is there a way to utilize this kind of code, but make it so that if the program happens to land on a repeat number it ignores it and reselects?

For $n = 5 to 1 Step -1    $RandomNumber = RANDOM (1,10,1)       If $RandomNumber = 1 then FUNC1       If $RandomNumber = 1 then FUNC2       If $RandomNumber = 1 then FUNC3       If $RandomNumber = 1 then FUNC4       ... Next

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>