updated random boolean color

This commit is contained in:
Peli de Halleux 2016-05-26 19:55:25 -07:00
parent 41c7053f3f
commit 21280f41bc

View File

@ -10,7 +10,7 @@ namespace Math {
* Generates a `true` or `false` value randomly, just like flipping a coin. * Generates a `true` or `false` value randomly, just like flipping a coin.
*/ */
//% blockId=logic_random block="pick random true or false" //% blockId=logic_random block="pick random true or false"
//% help=math/random-boolean color=210 //% help=math/random-boolean color=230
export function randomBoolean(): boolean { export function randomBoolean(): boolean {
return Math.random(2) == 0; return Math.random(2) == 0;
} }