repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanups.
[e-mobility-charging-stations-simulator.git]
/
src
/
utils
/
Utils.js
diff --git
a/src/utils/Utils.js
b/src/utils/Utils.js
index 15ee30711ec2c3645626b0e6af071abd212c71aa..5b26a4f8b9d2a7d473415843e67ae5c00602882c 100644
(file)
--- a/
src/utils/Utils.js
+++ b/
src/utils/Utils.js
@@
-121,9
+121,9
@@
class Utils {
static getRandomInt(max, min) {
if (min) {
static getRandomInt(max, min) {
if (min) {
- return Math.floor((Math.random() * (max - min)) + min);
+ return Math.floor((Math.random() * (max - min
+ 1
)) + min);
}
}
- return Math.floor((Math.random() * max));
+ return Math.floor((Math.random() * max
+ 1
));
}
static basicFormatLog(prefixString = '') {
}
static basicFormatLog(prefixString = '') {