UNPKG
imagerot
Version:
latest (1.0.3)
1.0.3
1.0.1
1.0.0
A lightweight, cross-environment image library for applying unique effects via raw image buffers.
imagerot
/
lib
/
helpers
/
randomize
/
index.js
8 lines
(7 loc)
•
235 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
randomize
=
void
0
;
const
randomize
= (
min, max
) => {
return
Math
.
floor
(
Math
.
random
() * (max - min +
1
) + min); };
exports
.
randomize
= randomize;