let sequence = 1 ..< 27
let shuffledSequence = sequence.shuffled()
print (shuffledSequence)Wow now it is so easy! Two lines of code. No more shuffling arrays, or writing C scripts.
For me, Non-repeating random numbers are the basis of all my games.
From chess puzzles to map making. Finally, an easy solution.
Thannks for the update.