Code with MakeCode — image 1 of 2

makecode_pickrandom.jpg
details

Go to LOOPS and drag an instance of repeat 4 times into your on button A click loop below the play sound instance.  Then click the MATH block and grab an instance of pick random.  Drag it onto your workspace and use it to replace the default 4 in the repeat loop.

Back

Search