code for some people so here you go bro so well will this be code nevermind

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.

Upvoters
Status

In Review

Board

πŸ”Œ Integrations

Date

5 months ago

Author

MAGNUS FERRELL

Subscribe to post

Get notified by email when there are changes.