mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			275 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			275 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
function randomString(len) {
 | 
						|
    let text = "";
 | 
						|
    const possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
 | 
						|
 | 
						|
    for (let i = 0; i < len; i++) {
 | 
						|
        text += possible.charAt(Math.floor(Math.random() * possible.length));
 | 
						|
    }
 | 
						|
 | 
						|
    return text;
 | 
						|
} |