Biztos, hogy nincs ez a feladat túlgondolva? :)
const http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.end(Math.random() * (30 - 1) + 1);
}).listen(3000);
Tetszőleges másik stackben is hasonlóan egyszerű. A mockolás egy hasznos dolog, de ha ez egy ideiglenes valami, én nem biztos, hogy ennél sokkal több időt töltenék vele.