@kirz/react-native-toolkit
Version:
Toolkit to speed up React Native development
18 lines (17 loc) • 432 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.randomFloat = randomFloat;
exports.randomInt = randomInt;
function randomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
function randomFloat(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.random() * max;
}
//# sourceMappingURL=random.js.map