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?
https://stackoverflow.com/questions/65802136/how-to-avoid-generating-the-same-random-string-twice-in-a-row-in-swift January 20, 2021 at 10:12AM
没有评论:
发表评论