speice.io/blog/2024-11-15-playing-with-fire/1-introduction/randint.ts
2024-11-23 15:27:02 -05:00

3 lines
125 B
TypeScript

export default function randomInteger(min: number, max: number) {
return Math.floor(Math.random() * (max - min)) + min;
}