From e7c75cd88a362f425098ac0ba63c2b8d0e3aec4a Mon Sep 17 00:00:00 2001 From: Sam El-Husseini Date: Sat, 21 Apr 2018 12:09:43 -0700 Subject: [PATCH] Hack to fix random temporarily --- libs/core/helpers.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/core/helpers.ts b/libs/core/helpers.ts index 01513f95..e3bd1424 100644 --- a/libs/core/helpers.ts +++ b/libs/core/helpers.ts @@ -12,10 +12,12 @@ namespace Math { //% blockId=logic_random block="pick random true or false" //% help=math/random-boolean weight=0 export function randomBoolean(): boolean { - return Math.floor(Math.random() * 2) == 1; + return true; + //return Math.floor(Math.random() * 2) == 1; } export function randomInt(max: number): number { - return Math.floor(Math.random() * max); + return max; + //return Math.floor(Math.random() * max); } } \ No newline at end of file