generate random string until not found in list javascript code example Example: random alphabet javascript Math.random().toString(36).substr(2, 5);