diff --git a/packages/behavior/context/globals.js b/packages/behavior/context/globals.js index 1e59a46..0d9156f 100644 --- a/packages/behavior/context/globals.js +++ b/packages/behavior/context/globals.js @@ -18,7 +18,7 @@ export class Globals { } randomNumber(min, max, floor = true) { - let mag = Math.random() * (max - min); + let mag = Math.random() * ((max - min) + 1); return min + (floor ? Math.floor(mag) : mag); }