Hack to fix random temporarily

This commit is contained in:
Sam El-Husseini 2018-04-21 12:09:43 -07:00
parent 0517d4a278
commit e7c75cd88a

View File

@ -12,10 +12,12 @@ namespace Math {
//% blockId=logic_random block="pick random true or false" //% blockId=logic_random block="pick random true or false"
//% help=math/random-boolean weight=0 //% help=math/random-boolean weight=0
export function randomBoolean(): boolean { 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 { export function randomInt(max: number): number {
return Math.floor(Math.random() * max); return max;
//return Math.floor(Math.random() * max);
} }
} }