const first = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" ; const letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_" ; function f ( ) { return first [ Math . floor ( Math . random ( ) * first . length ) ] ; } function l ( ) { return letters [ Math . floor ( Math . random ( ) * letters . length ) ] ; } export function randomID ( ) { return f ( ) + l ( ) + l ( ) + l ( ) + l ( ) + l ( ) + l ( ) + l ( ) + l ( ) ; }