UNPKG

simple-captcha

Version:
6 lines (5 loc) 212 B
module.exports = function(height, width, font) { var max = height * 0.6; // max is 50% of height var min = height * 0.6; // min is 40% of height return Math.floor(Math.random() * (max - min + 1)) + min; };