Random

"Make a random number using number tiles. For example, Random - 5 creates a random number between 0 and 5."

The "random" tile works differently than the Kodu in-game help would suggest.

Putting a number after "random" sets how many numbers "random" will choose from, with the default being five. Thus, "random 4" would pick between four numbers and return 0, 1, 2, or 3.

Putting a number before "random" sets the lowest possible number, with the default being zero. Thus, "5 random 4" would pick between four numbers, starting with 5 and return 5, 6, 7, or 8. Putting the "random" tile alone is the same as "0 random 5" and will return 0, 1, 2, 3, or 4.

Random number between zero and x: [random] + [x+1]

Random number between x and y: [x] + [random] + [y-x+1]