Hello World! I'm creating a function to generate random colors in C#. I've started a new project and we could just double-click on the form. And in form load I'm going to say back color equals color dot (.) But instead of picking a color I'm going to pick this method fromARGB. and ARG stands... RGB stands for red green blue. And the values can go anywhere from 0 to 255. So I going to make the color red by setting the R value, the red value, to 255 and green to 0 and blue to 0. And there we go: the background is red. Now, if I wanted to make pink I could make these values a little bit more. This is not mixing paint this as mixing lights, so, when the lights are on full force, if all these values were 255 we would have white. And if they were all zero, all the lights are off, we would have black. So this should make us a pink color. peachy pink I'm going to write a function or method, to find a random color. So private... private and the function is going to return a color. Let's name this random color, no arguments. And red will be equal to... I need a random number generator. Let's do that up here and were going to type random... random equals new random. And that will set the random number seed. and then I can say red equals random.next. And from 0 to 256. that will actually give us values from 0 to 255. This is the minimum, and the value returned will be greater than or equal to that, but less than this. So that will be a value from 0 to 255. And let's do the same for red, green, and blue. And then return [typing] Color dot (.). from a RGB and we will send it red, green, blue, and then here I'm going to call my function [typing] And run this... and here's the color. I'm going to put a pause right here and run this. And then we can look at these values: red is 74, and green as 109, and Blue is 186, these are kind of low numbers; this is going to be dark color. And there we go. That's it.