mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
d0caef8be7
* Added possibility to wait for an element or a class absence
13 lines
214 B
JavaScript
13 lines
214 B
JavaScript
export default function random(min = 1000, max = 5000) {
|
|
const val = Math.random() * 1000 * 10;
|
|
|
|
if (val < min) {
|
|
return min;
|
|
}
|
|
|
|
if (val > max) {
|
|
return max;
|
|
}
|
|
|
|
return val;
|
|
} |