Added Random Hour function, minor refactoring
This commit is contained in:
@@ -6,10 +6,16 @@ const randomInRange = (min, max) => {
|
||||
return Math.floor(Math.random() * (max - min)) + min;
|
||||
};
|
||||
|
||||
const randomInRangeNoRounding = (min, max) => {
|
||||
return Math.random() * (max - min) + min;
|
||||
};
|
||||
|
||||
const logMessage = (module, message) => {
|
||||
console.log(`[${module}]: ${message}`);
|
||||
};
|
||||
|
||||
const logObject = (module, object) => {
|
||||
console.log(`[${module}]: `, object);
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user