function getRandomInteger(min, max) {
// Ensure min and max are integers
min = Math.ceil(min);
max = Math.floor(max);
// Generate a random number within the range [min, max]
return Math.floor(Math.random() * (max - min + 1)) + min;
}
// Example usage:
const randomNumber = getRandomInteger(1, 100); // Generates a random integer between 1 and 100
Please authenticate to join the conversation.
In Review
π Integrations
5 months ago

MAGNUS FERRELL
Get notified by email when there are changes.
In Review
π Integrations
5 months ago

MAGNUS FERRELL
Get notified by email when there are changes.