Part 4 - Random Numbers
Random numbers are a key part of many programs, especially games. This section covers several ways to generate random integers, and random decimal values.
Random Numbers
What to Do?
Read through the Random Numbers tutorial
Make your own C# console program to answer questions.
Here is a GitHub link of a sample console application that I have made:
Documentation for Random Class
Random Methods:
Next() https://docs.microsoft.com/en-us/dotnet/api/system.random.next?view=netframework-4.8
3 versions that behave slightly differently
NextDouble() https://docs.microsoft.com/en-us/dotnet/api/system.random.nextdouble?view=netframework-4.8
Complete the Random Numbers Programming Assignment
SUBMIT
There is a sample .exe below that you may download to see what your program should do
It does not need to be crash proof
Feel free to enhance your programs by using some advanced console controls: