the 'generate_unique_code' function
Opened this issue · 0 comments
td-at-coding commented
I think you could do better than randomly picking letters. The problems pops up if there were too many rooms so this function won't stop looping. My advice is to make a backtracking algorithm to create all combinations and then you can pick and pop an element from the combinations.