Random Class
This bit of code allows you to create random numbers and codes. It uses a Random class keyword to initiate the creation of a random number of letter.
The Random class keyword looks like this
var randomNumberGenerator = new Random();
With the line above you can create Random numbers in your program. In the video below we will talk about how to use this very powerful keyword.
The Random class keyword looks like this
var randomNumberGenerator = new Random();
With the line above you can create Random numbers in your program. In the video below we will talk about how to use this very powerful keyword.
Assignment
1. Start a new project named RandomNumbers
2. In this program use the Random class keyword to be able to generate random numbers.
3. Have your program print out to the Console 3 different number using these parameters
First Random number 1-10
Second Random number 10-20
Third Random number 155-203
4. Take a screen shot of the code and the output window and turn them into Google Classroom