Generate Random ID Length

Generate random codes for IDs or other purposes. Any number of characters. Check out this video where it's used: https://www.youtube.com/watch?v=VQsV52LTU7Y

Code.gs

function generateCharacters(count){
  const chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789'
  let result = ''
  for ( i=0 ; i < count ; i++){
    result += chars.charAt(Math.floor(Math.random() * chars.length))
  }

  return result

}