Skip to content

Instantly share code, notes, and snippets.

View seafoam6's full-sized avatar
🐲
Gremlins 2

Steve Barman seafoam6

🐲
Gremlins 2
View GitHub Profile
var path ='/Volumes/FORGETMENOW';
var fs = require('fs');
fs.readdir(path, function(err, files){
var rando = Math.floor(Math.random() * files.length);
console.log(files[rando]);
});