var Point = require('../point/Point'); var Random = function (rect, out){ if (out === undefined) { out = new Point(); } out.x = rect.x + (Math.random() * rect.width); out.y = rect.y + (Math.random() * rect.height); return out; } ; module.exports = Random;