shahoob/functionKit

View on GitHub
src/random.ts

Summary

Maintainability
A
0 mins
Test Coverage
export function random(min: number, max: number) {
    min = Math.ceil(min);
    max = Math.floor(max);
    return Math.floor(Math.random() * (max - min + 1) + min);
}