I'm creating an app that uses an array of 25 labels. I want these labels to be assigned random numbers between 1 and 25 that don't get repeated. I can figure out how to assign these labels to random numbers between 1 and 25 that can be repeated, but I can't figure out how to not have these numbers repeat. My code so far is below.
for label in labelsArray {
let randomNumber = (arc4random() % 25) + 1
label.text = "\(randomNumber)"
Is it possible to have each of the labels assigned to a different number between 1 and 25?