6 lines
		
	
	
		
			139 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			139 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = (list = []) => (n = 1) =>
 | |
| 	Array(n)
 | |
| 		.fill(0)
 | |
| 		.map(() => list[Math.floor(Math.random() * list.length)])
 | |
| 		.join("\n");
 |