I Have Decided To Start a Tutorial Series Dedicated To C#

Every Other Day, I Will Release Another Tutorial and Build Up The Series!

All Codes in this Series will be written by me personally

*This Series Is Aimed For Beginners, So I Wont Be Getting Too Technical Throughout The Series!.*

Reasons Why Im Starting This Series On The Forum;

1. Too Much Gay GSC On This Forum

2. Hopefully Get More People To Work With C#

3. C# Is Sexy

4. Pretty Easy To Pick Up

To Start The Series Off, This Thread Will Teach You How To Generate A Number;

//How To Generate Random Number

private int RandomNumber(int min, int max)

{

Random random = new Random();

return random.Next(min, max);

// Min= Lowest Possible Number | Max- max possible number

}

// Button Pressed

{ //Min, Max

textBox1.Text = RandomNumber(10, 20).ToString();

}

Generate Numbers Using A Timer Loop!

//Loop Random Number

private int RandomNumber(int min, int max)

{

Random random = new Random();

return random.Next(min, max);

}

//Button Pressed | Starts Loop

{

timer1.Start();

}

//Button Pressed | Stops Loop

{

timer1.Stop();

}

private void timer1_Tick(object sender, EventArgs e)

{

textBox1.Text = RandomNumber(10, 20).ToString();

}

Hopefully this tutorial is understandable, if for some reason you need help from this series at any time, feel free to skype me. Skype- FourSeasonModz

Please Also Note : If you make any of these methods static, the number generation will always result in the same number

Every Other Day, I Will Release Another Tutorial and Build Up The Series!

All Codes in this Series will be written by me personally

*This Series Is Aimed For Beginners, So I Wont Be Getting Too Technical Throughout The Series!.*

Reasons Why Im Starting This Series On The Forum;

1. Too Much Gay GSC On This Forum

2. Hopefully Get More People To Work With C#

3. C# Is Sexy

4. Pretty Easy To Pick Up

To Start The Series Off, This Thread Will Teach You How To Generate A Number;

//How To Generate Random Number

private int RandomNumber(int min, int max)

{

Random random = new Random();

return random.Next(min, max);

// Min= Lowest Possible Number | Max- max possible number

}

// Button Pressed

{ //Min, Max

textBox1.Text = RandomNumber(10, 20).ToString();

}

Generate Numbers Using A Timer Loop!

//Loop Random Number

private int RandomNumber(int min, int max)

{

Random random = new Random();

return random.Next(min, max);

}

//Button Pressed | Starts Loop

{

timer1.Start();

}

//Button Pressed | Stops Loop

{

timer1.Stop();

}

private void timer1_Tick(object sender, EventArgs e)

{

textBox1.Text = RandomNumber(10, 20).ToString();

}

Hopefully this tutorial is understandable, if for some reason you need help from this series at any time, feel free to skype me. Skype- FourSeasonModz

Please Also Note : If you make any of these methods static, the number generation will always result in the same number

Last edited: Oct 7, 2016