updated random boolean color
This commit is contained in:
parent
41c7053f3f
commit
21280f41bc
@ -10,7 +10,7 @@ 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 color=210
|
||||
//% help=math/random-boolean color=230
|
||||
export function randomBoolean(): boolean {
|
||||
return Math.random(2) == 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user