Random hour script re-written in node.js