Scratch 2.0 provides robust support for performing mathematical calculations. This lets you develop applications that can manipulate numeric data in a variety of ways. Scratch 2.0 provides this support through operator blocks. Operator blocks are reporter blocks, so you can only use them in conjunction with stack code blocks. This chapter provides a thorough review of each of these code blocks and shows you how to create a new Scratch 2.0 application: the Number Guessing game.
The major topics covered in this chapter include
Adding, subtracting, multiplying, and dividing programmatically
Generating random numbers ...