@kirz/react-native-toolkit
Version:
Toolkit to speed up React Native development
11 lines • 300 B
JavaScript
export function randomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min) + min);
}
export function randomFloat(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.random() * max;
}
//# sourceMappingURL=random.js.map