0 10 20 30 40 50 60 70 80 90 100 83223 0
You are not logged in

Welcome to type with code

Start typing or press to get going!

The csharp code you'll be racing to type out is all about:

Choose a random number

Computers can't think for themselves - they can only follow instructions., so getting them to choose a number that is truely random is not easy. Thankfully, most programming languages have a function that will choose a number for you that appears to be chosen at random.

This example generates a random integer between 0 and 10 and saves it into a variable called r