Ok I'll do the Random block now and then do that

# -Madi- /KVJ Tutorial Ideas

**KVJ**#42

## That was long lol

The Random block is a block that can give a random number when you need one. No wonder it's called Random!

How does this work?

First you put the block somewhere. This is a very useful block so you can use it pretty much anywhere. As a colour (like in a HSB/RGB block), as Movement (Move Forward, Set Position, Turn etc), or for Values and more!

When you add the block, you will have two blanks. It will look like: Random (*) to (*). The first blank will be the minimum (lowest) you want. Like for Set Invisibility, the minimum might be 0, so you'd put 0 on the first blank like this: Random (0) to (_). The second blank is the maximum (highest) amount. You might put a 100 here.

So what does this do? The program will run and when it gets to the Random block, it will generate a number (randomly) which is between the two numbers you put in!

What can you use this for?

Many things: movement, positioning an object, setting an invisibility, waiting an unpredictable amount of time, set a value to something random, and more!

**Madi_Hopscotch_**#43

## Sin/Cosine

You usually use it in a Set Position block, putting one in the X and one in the Y. Then you choose how wide and tall you want the arc and where it will be. The first blank in each block will be how wide (for X) or tall (for Y) the circle/oval will be. The second block is where the object will be, on the circumference of the arc. Usually you use a value here and make the value change, so that the object goes around the circle. Last is the centre. This is basically the X and Y position of the centre of the circle. The arc will form around this point. So, if you want a circle in the middle of the screen, you'd use half of the length of the device for the X, and half of the height for the Y.

## Modulo

Modulo is a very unused block but it can be very important for math equations. Basically it is the remainder of a division problem.**How it Works**

Modulo is set up like this:

___ % ___

This means ___ divided by ___. Modulo isn't the answer to a division problem, it is the remainder of the division problem. For example:

6 divided by 4 is 1, with a remainder of 2. So 2 would be the outcome of your Modulo.

It would look like this: 6 % 4

Another example:

6 % 2

A lot of the time there is no remainder, so the outcome would be 0 because 6 divided by 2 is 3, with no remainder.

6 % 2 = 0

## Absolute Value

Absolute value is pretty simple. It is the distance from 0. For example, if you put in 5 for absolute value, the answer will be 5 because 5 is 5 away from 0. If it was -5 then the answer would be 5 because it is still 5 away from 0. Absolute value can *never* be a negative number.

## Random

The Random block is a block that can give a random number when you need one. No wonder it's called Random!

How does this work?

First you put the block somewhere. This is a very useful block so you can use it pretty much anywhere. As a colour (like in a HSB/RGB block), as Movement (Move Forward, Set Position, Turn etc), or for Values and more!

When you add the block, you will have two blanks. It will look like: Random () to (). The first blank will be the minimum (lowest) you want. Like for Set Invisibility, the minimum might be 0, so you'd put 0 on the first blank like this: Random (0) to (_). The second blank is the maximum (highest) amount. You might put a 100 here.

So what does this do? The program will run and when it gets to the Random block, it will generate a number (randomly) which is between the two numbers you put in!

What can you use this for?

Many things: movement, positioning an object, setting an invisibility, waiting an unpredictable amount of time, set a value to something random, and more!

**Madi_Hopscotch_**#44

@KVJ the ones that are left are a little tricky.. I can do power. You can do either rounding or square root. You can play around with them first I'll do power in a little while

**BellaWafflez17**#45

Omigosh I only have a few likes left ;-;

I can't spamlike this topic anymore T^T

ಠ_ಠ

**Jess888**#48

I love this topic coz KVJ is speaking more than in other topics so I can really practice imitating him

**Madi_Hopscotch_**#52

## Sin/Cosine

You usually use it in a Set Position block, putting one in the X and one in the Y. Then you choose how wide and tall you want the arc and where it will be. The first blank in each block will be how wide (for X) or tall (for Y) the circle/oval will be. The second block is where the object will be, on the circumference of the arc. Usually you use a value here and make the value change, so that the object goes around the circle. Last is the centre. This is basically the X and Y position of the centre of the circle. The arc will form around this point. So, if you want a circle in the middle of the screen, you'd use half of the length of the device for the X, and half of the height for the Y.

## Modulo

Modulo is a very unused block but it can be very important for math equations. Basically it is the remainder of a division problem.**How it Works**

Modulo is set up like this:

___ % ___

This means ___ divided by ___. Modulo isn't the answer to a division problem, it is the remainder of the division problem. For example:

6 divided by 4 is 1, with a remainder of 2. So 2 would be the outcome of your Modulo.

It would look like this: 6 % 4

Another example:

6 % 2

A lot of the time there is no remainder, so the outcome would be 0 because 6 divided by 2 is 3, with no remainder.

6 % 2 = 0

## Absolute Value

Absolute value is pretty simple. It is the distance from 0. For example, if you put in 5 for absolute value, the answer will be 5 because 5 is 5 away from 0. If it was -5 then the answer would be 5 because it is still 5 away from 0. Absolute value can *never* be a negative number.

## Random

The Random block is a block that can give a random number when you need one. No wonder it's called Random!

How does this work?

First you put the block somewhere. This is a very useful block so you can use it pretty much anywhere. As a colour (like in a HSB/RGB block), as Movement (Move Forward, Set Position, Turn etc), or for Values and more!

When you add the block, you will have two blanks. It will look like: Random () to (). The first blank will be the minimum (lowest) you want. Like for Set Invisibility, the minimum might be 0, so you'd put 0 on the first blank like this: Random (0) to (_). The second blank is the maximum (highest) amount. You might put a 100 here.

So what does this do? The program will run and when it gets to the Random block, it will generate a number (randomly) which is between the two numbers you put in!

What can you use this for?

Many things: movement, positioning an object, setting an invisibility, waiting an unpredictable amount of time, set a value to something random, and more!

## Power

Power is basically multipliying a number by a number. Power is set up like this: __ ^ __

Let's say that your first blank is 5 and your second blank is 2. This would be: 5^2

That doesn't mean 5 times 2. It actually means 5 times 5. How this works is you multiply your first number the amount of times as your second number.

Another example:

3^3

Not 3 times 3. This is 3 to the third power. You multiply the by the second number, which is also 3.

(• = multiply)

3 • 3 • 3 = 27

Lol it's been so long and we haven't finished!

**Madi_Hopscotch_**#54

@KVJ I finished power. I can do rounding now Also, are we doing addition, subtraction, multiplication, and division? I'm not sure if we need to cause they are really basic

**friendship2468**#60

Do you like my projects?

P.s. Yaaaay!

I have an idea for a tutorial that you can make: coloring page?