I have a text field and a button that generates a random set of characters. Set 1 = lowercase, set 2 = uppercase, set 3 = numbers, set 4 = symbols
I want the the button to generate no more no less that 10 characters and minimum pull from each of the sets at least once.
My idea of how to do it so far is
let roomIDGenerated = uniqueRoomID.text
let roomIDCount = roomIDGenerated?.characters.count
let randomCharacterSet = arc4random() upp
while roomIDCount < 10 {
<#code#>
}
But I don't see how to do it...i don't always want the first 4 characters to always be one of each.. maybe one of the required sets is used last.
I'm kinda stuck in general, any help would be appreciated