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
15 lines (14 loc) • 498 B
text/typescript
/**
* 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
*/
export function getRandomNumber(min: number, max: number): number {
return Math.floor(Math.random() * (max - min + 1)) + min;
}