How to avoid generating the same random String twice in a row in Swift?
I‘m trying to get a random value from an array of strings from an SQLite database, without getting the same value twice in a row (same value should be able to appear again later, but not immediately after). How can I achieve this in Swift?
Aucun commentaire:
Enregistrer un commentaire