Or: “Everybody likes being given a glass of water.”
By Merlin Mann.
It's only advice for you because it had to be advice for me.
const PiCamera = require('pi-camera'); | |
function getRandomInt(max) { | |
return Math.floor(Math.random() * Math.floor(max)); | |
} | |
setInterval(function() { | |
var path = './' + getRandomInt(500) + '.jpg'; |