Initial target repo setup to move to master (v3.10)

This commit is contained in:
Sam El-Husseini
2018-04-21 10:25:43 -07:00
parent cf7767ec1c
commit 6ea0c50472
36 changed files with 2717 additions and 1459 deletions

View File

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