Generation

generate functionSat, 12 Nov 2022

return a random numbertbetween the parameters

function randint(a, b) { return Math.floor(Math.random() * (b - a + 1)) + a }

TypeScript
Generate More

Questions about programming?Chat with your personal AI assistant