UNPKG

clicks-recaptcha-solver

Version:

A powerful automation tool for solving Google reCAPTCHA challenges using Playwright and Puppeteer. This package intelligently detects and simulates human-like interactions, including mouse movements and precise clicks, to bypass reCAPTCHA v2 and other sim

18 lines (17 loc) 573 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRandomNumber = getRandomNumber; /** * Returns a random integer within the specified inclusive range. * * @param {number} min - Minimum possible value. * @param {number} max - Maximum possible value. * @returns {number} A random number between `min` and `max` inclusive. * * @example * const randomNum = getRandomNumber(1, 10); * console.log(randomNum); // For example: 5 */ function getRandomNumber(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; }